From: hubert depesz lubaczewski <depesz@depesz.com>
To: Emiliano Saenz <saenz.emi.jos@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: The Curious Case of the Table-Locking UPDATE Query
Date: Thu, 8 Jul 2021 19:42:24 +0200
Message-ID: <20210708174224.GA9739@depesz.com> (raw)
In-Reply-To: <CAMdU7qvsopfvonDThnOXzeU2szqR3JVJnZ2+6Ux=_inoZXpS8Q@mail.gmail.com>
References: <CAMdU7qsXphcRDKc33QuvVwmymH1HaahJTatgA32+2So_h7m4OA@mail.gmail.com>
<20210706092439.GA6661@depesz.com>
<CAMdU7qvsopfvonDThnOXzeU2szqR3JVJnZ2+6Ux=_inoZXpS8Q@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: depesz@depesz.com, saenz.emi.jos@gmail.com
Subject: Re: The Curious Case of the Table-Locking UPDATE Query
In-Reply-To: <20210708174224.GA9739@depesz.com>
References: <CAMdU7qsXphcRDKc33QuvVwmymH1HaahJTatgA32+2So_h7m4OA@mail.gmail.com> <20210706092439.GA6661@depesz.com> <CAMdU7qvsopfvonDThnOXzeU2szqR3JVJnZ2+6Ux=_inoZXpS8Q@mail.gmail.com> <20210708174224.GA9739@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox