Re: a SELECT FOR UPDATE question

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tim Vadnais <tvadnais(at)bwks(dot)com>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: a SELECT FOR UPDATE question
Date: 2005-02-11 02:37:39
Message-ID: 20050211023738.GA93091@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-11 02:51:18 Re: Understanding EXPLAIN ANALYZE output
Previous Message David Fetter 2005-02-11 02:14:50 Re: Understanding EXPLAIN ANALYZE output