Re: Weird behavior with "sensitive" cursors. - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Weird behavior with "sensitive" cursors.
Date
Msg-id 20091001194046.GJ5607@alvh.no-ip.org
Whole thread Raw
In response to Re: Weird behavior with "sensitive" cursors.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Weird behavior with "sensitive" cursors.
List pgsql-general
Tom Lane escribió:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Tom Lane escribió:
> >> Well, the first problem is that 8.4 is failing to duplicate the
> >> historical behavior.
>
> > Oh!  That's easy.
>
> I don't think that testing rowMarks is the right thing at all here.
> That tells you whether it's a SELECT FOR UPDATE, but actually we
> want any cursor (and only cursors) to have a private snapshot.

The attached patch implements this.  I intend to apply to 8.4 and HEAD
shortly.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Attachment

pgsql-general by date:

Previous
From: APseudoUtopia
Date:
Subject: Re: Vacuumdb Fails: Huge Tuple
Next
From: Scott Marlowe
Date:
Subject: Re: Vacuumdb Fails: Huge Tuple