2005/8/30, Michael Fuhr <mike(at)fuhr(dot)org>:
>
> TRUNCATE acquires an AccessExclusiveLock, which conflicts with all
> other lock types. Locks are held until the transaction completes,
> so once this lock is acquired no other transactions will be able
> to access the table until this transaction commits or rolls back.
>
> DELETE is slower than TRUNCATE but it won't block readers in other
> transactions.
>
I think it is of great help. I will change it and let you know what happened.
Regards, Clodoaldo Pinto