Re: BUG #10315: Transactions seem to be releasing locks early? - Mailing list pgsql-bugs

From Greg Stark
Subject Re: BUG #10315: Transactions seem to be releasing locks early?
Date
Msg-id CAM-w4HNHh7qj=45cq=b2iH4xb+mD5HcvzmoirZ2AW3o8X4Y0=g@mail.gmail.com
Whole thread Raw
In response to BUG #10315: Transactions seem to be releasing locks early?  (tim.channell@gmail.com)
Responses Re: BUG #10315: Transactions seem to be releasing locks early?  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
On Tue, May 13, 2014 at 9:51 PM,  <tim.channell@gmail.com> wrote:
> 7. Back in the second transaction, our DELETE has executed because the lock
> was released. It would be expected to show "DELETE 1", because the first
> transaction re-inserted the deleted record. But, it shows DELETE 0.

It can't see the second row because it was inserted after the delete
query started.

I think in SERIALIZABLE mode it would be flagged as a serialization
failure but I'm not sure.

--
greg

pgsql-bugs by date:

Previous
From: David G Johnston
Date:
Subject: Re: BUG #10315: Transactions seem to be releasing locks early?
Next
From: Michael Paquier
Date:
Subject: Re: BUG #10315: Transactions seem to be releasing locks early?