On 09/11/2012 09:55 AM, AI Rumman wrote:
I added the excel file for locks data.
I was surprised to see that while I was updating a single column value for all records in a tables, all indexes are locked by the server.


Any ALTER TABLE command locks the whole table in ACCESS EXCLUSIVE mode, indexes included. See the description of ACCESS EXCLUSIVE lock at <http://www.postgresql.org/docs/current/static/explicit-locking.html>

cheers

andrew




--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Reply via email to