Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle
Date
Msg-id 20906.1273786751@sss.pgh.pa.us
Whole thread Raw
In response to Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle  (Florian Pflug <fgp@phlo.org>)
Responses Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle
Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle
List pgsql-hackers
Florian Pflug <fgp@phlo.org> writes:
> All in all, I believe that SHARE and UPDATE row-level locks should be
> changed to cause concurrent UPDATEs to fail with a serialization
> error.

I don't see an argument for doing that for FOR SHARE locks, and it
already happens for FOR UPDATE (at least if the row actually gets
updated).  AFAICS this proposal mainly breaks things, in pursuit of
an unnecessary and probably-impossible-anyway goal of making FK locking
work with only user-level snapshots.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: List traffic
Next
From: "Kevin Grittner"
Date:
Subject: Re: Row-level Locks & SERIALIZABLE transactions, postgres vs. Oracle