Re: Can pessimistic locking be emulated?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: "Christoph Haller" <ch(at)rodos(dot)fzk(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Can pessimistic locking be emulated?
Date: 2003-02-27 17:37:54
Message-ID: 12989.1046367474@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-02-27 17:55:42 Re: analyze after a database restore?
Previous Message mlw 2003-02-27 17:27:44 analyze after a database restore?