Re: Revisited: Transactions, insert unique. - Mailing list pgsql-general

From Ed Loehr
Subject Re: Revisited: Transactions, insert unique.
Date
Msg-id 3907733C.C6464306@austin.rr.com
Whole thread Raw
In response to Re: Revisited: Transactions, insert unique.  (Joachim Achtzehnter <joachim@kraut.bc.ca>)
Responses Re: Revisited: Transactions, insert unique.
List pgsql-general
rmcm@compsoft.com.au wrote:
>
> Doesn't
>
>      SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
>
> have to come within transaction - ie
>
>      BEGIN;
>      SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
>
> In this order your test seems to behave correctly - only 1 row inserted.

Yes, my initial ordering was in error.  But even after reordering, the
point is not that only 1 row was inserted, but rather that Transaction A
was able to see the effects of transaction B when it clearly should not.

Regards,
Ed Loehr

pgsql-general by date:

Previous
From: rmcm@compsoft.com.au
Date:
Subject: Re: Revisited: Transactions, insert unique.
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] 7.0 weirdness (maybe solaris?)