understanding pg_locks - Mailing list pgsql-general

From Ben Chobot
Subject understanding pg_locks
Date
Msg-id B54E1C33-ACCF-45AF-9E00-CF08B131FFBD@silentmedia.com
Whole thread Raw
Responses Re: understanding pg_locks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
We recently had an issue where a misbehaving application was running a long transaction that modified a bunch of rows,
andthis was holding up other transactions that wanted to do similar modifications. No surprising there. But what I'm
unclearof is how this was showing up in pg_locks. The blocked transactions were all waiting on the transactionid of the
long-runningtransaction, not any particular relation or tuple. Why doesn't pg_locks show the actual blockage? Isn't
thatwhat MVCC is good for? 

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: counterintuitive behaviour in pl/pgsql
Next
From: Björn Häuser
Date:
Subject: Re: counterintuitive behaviour in pl/pgsql