Re: Locking to restrict rowcounts. - Mailing list pgsql-general

From Richard Huxton
Subject Re: Locking to restrict rowcounts.
Date
Msg-id 4A13BD6C.4090002@archonet.com
Whole thread Raw
In response to Locking to restrict rowcounts.  ("Shakil Shaikh" <sshaikh@hotmail.com>)
List pgsql-general
Just realised I didn't cc: the list on this. Was obviously having a good
evening.

Richard Huxton wrote:
> Glen Parker wrote:
>  > I still don't think it will work.  Two concurrent transactions could
>> still screw the data up.
>>
>> Before: 9 rows.
>> Tx 1: See 9 rows, issue insert, see 10 rows.
>> Tx 2: See 9 rows, issue insert, see 10 rows.
>> After: 11 rows.
>
> True, and well corrected.
>
> Serves me right for posting at the end of a long day. Particularly
> irritating as its almost identical to the example I've used myself when
> showing the limitations of PG's low-locking MVCC model.
>


--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Gilles
Date:
Subject: [Windows] Feedback on PG?
Next
From: Simon Riggs
Date:
Subject: Re: [Windows] Feedback on PG?