Search Postgresql Archives

Re: update functions locking tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux