Re: Broken RR? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Broken RR?
Date
Msg-id 024601c32b22$f6124220$6500a8c0@fhp.internal
Whole thread Raw
In response to Broken RR?  ("Rasmus Resen Amossen" <rresena@hotmail.com>)
List pgsql-hackers
> T1: begin;
> T1: select * from table;
>    (notice the row with id = X)
> T2: begin;
> T2: delete from table where id = X;
> T1: select * from table;
>    (notice the row with id = X suddenly is gone)

You'll need to SELECT ... FOR UPDATE to lock the row, or use the
SERIALIZABLE transaction more I think...

Chris



pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Broken RR?
Next
From: Alvaro Herrera
Date:
Subject: Re: default locale considered harmful? (was Re: [GENERAL]