Re: Can pessimistic locking be emulated? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Can pessimistic locking be emulated?
Date
Msg-id 12989.1046367474@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can pessimistic locking be emulated?  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List pgsql-hackers
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> In my case, being able to view outstanding row level locks would be
> enormously useful.

The only way to do that would be to grovel through every table in the
database, looking for rows that are marked locked by transactions that
are still alive.

> A curious thought struck me: does the pg_lock view follow the mvcc
> rules,

No, not really.  If it did I don't think it'd be real useful ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Free-space-map management thoughts
Next
From: Rod Taylor
Date:
Subject: Re: Can pessimistic locking be emulated?