Re: a SELECT FOR UPDATE question - Mailing list pgsql-general

From Michael Fuhr
Subject Re: a SELECT FOR UPDATE question
Date
Msg-id 20050211023738.GA93091@winnie.fuhr.org
Whole thread Raw
In response to Re: a SELECT FOR UPDATE question  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: a SELECT FOR UPDATE question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Thu, Feb 10, 2005 at 10:40:44AM -0500, Tom Lane wrote:
>
> Remember RC mode takes a new snapshot for each query.  You'd need to
> use serializable mode --- and do something to actually freeze the
> transaction snapshot, which BEGIN does not --- to see the issue in a
> manual test.

It sounds like the best a check could do would be the amazingly
astute "some transaction held a lock on this row at one time and
may or may not still hold that lock, and even if it did when you
checked it might have gone away by now and some other transaction
that you don't know about might hold a lock."

Does that about sum it up?  ;-)

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: Understanding EXPLAIN ANALYZE output
Next
From: Tom Lane
Date:
Subject: Re: Understanding EXPLAIN ANALYZE output