Re: Need help understanding pg_locks - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Need help understanding pg_locks
Date
Msg-id 12626.1310397083@sss.pgh.pa.us
Whole thread Raw
In response to Re: Need help understanding pg_locks  (Florian Pflug <fgp@phlo.org>)
Responses Re: Need help understanding pg_locks
Re: Need help understanding pg_locks
List pgsql-hackers
Florian Pflug <fgp@phlo.org> writes:
> On Jul11, 2011, at 05:47 , Bruce Momjian wrote:
>> Thank you.  I think my confusion is that virtualtransaction is the lock
>> holder/waiter, and the other two are actual locks.  The attached doc
>> patch clarifies that.  I had actually realized this a few weeks ago and
>> forgot, meaning this is pretty confusing.

> For consistency, I guess it should say "lock object" instead of simply
> "object" the description of all the columns up to (and including)
> "objsubid", not only those of "virtualxid" and "transactionid".

Yeah, I think this patch is going in the wrong direction altogether.
It would be better to modify the description of virtualtransaction
and pid to say that those are the "locking" entity.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: txid_current() forces a real xid
Next
From: Tom Lane
Date:
Subject: Re: Full GUID support