Re: More FOR UPDATE/FOR SHARE problems - Mailing list pgsql-hackers

From Tom Lane
Subject Re: More FOR UPDATE/FOR SHARE problems
Date
Msg-id 3328.1232848407@sss.pgh.pa.us
Whole thread Raw
In response to More FOR UPDATE/FOR SHARE problems  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: More FOR UPDATE/FOR SHARE problems
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> There you see a snapshot of the table that never existed. Either the
> snapshot was taken before the UPDATE, in which case i=3 should be
> included, or it was taken after the UPDATE, in which case i=4 should be
> included. So atomicity is broken for WHERE.

This assertion is based on a misunderstanding of what FOR UPDATE in
read-committed mode is defined to do.  It is supposed to give you the
latest available rows.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Next
From: Gregory Stark
Date:
Subject: Re: More FOR UPDATE/FOR SHARE problems