Re: The Curious Case of the Table-Locking UPDATE Query - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: The Curious Case of the Table-Locking UPDATE Query
Date
Msg-id 20210708174224.GA9739@depesz.com
Whole thread Raw
In response to The Curious Case of the Table-Locking UPDATE Query  (Emiliano Saenz <saenz.emi.jos@gmail.com>)
Responses Re: The Curious Case of the Table-Locking UPDATE Query  (Emiliano Saenz <saenz.emi.jos@gmail.com>)
List pgsql-general
On Thu, Jul 08, 2021 at 02:35:33PM -0300, Emiliano Saenz wrote:
> Attach the files.

The pg_locks file doesn't show any access exclusive locks on any table?

=$ awk -F, 'NR==1 || $13 == "AccessExclusiveLock"' pg_locks.csv 

Locktype,Database,Relation,Page,Tuple,Virtualxid,Transactionid,Classid,Objid,Objsubid,Virtualtransaction,Pid,Mode,Granted,Fastpath
tuple,248043888,248044255,213071,39,NULL,NULL,NULL,NULL,NULL,198/814,21038,AccessExclusiveLock,f,f
tuple,248043888,248044255,213071,39,NULL,NULL,NULL,NULL,NULL,34/90197,21187,AccessExclusiveLock,t,f
tuple,248043888,248044255,213071,39,NULL,NULL,NULL,NULL,NULL,132/957,21007,AccessExclusiveLock,f,f

As you can see all the AccessExclusive locks are on tuples (rows).

Best regards,

depesz




pgsql-general by date:

Previous
From: Emiliano Saenz
Date:
Subject: Re: The Curious Case of the Table-Locking UPDATE Query
Next
From: Atul Kumar
Date:
Subject: Re: optimization issue