2005/8/30, Michael Fuhr <mike@xxxxxxxx>: > > 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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match