Re: Weird behavior with "sensitive" cursors.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Daniel F <dbf13db(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Weird behavior with "sensitive" cursors.
Date: 2009-10-01 02:12:42
Message-ID: 4521.1254363162@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)commandprompt(dot)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.

Also, do we really need the Register bit? Won't the portal register
its use of the snapshot anyway (or if it doesn't, isn't that a bug)?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Training 2009-10-01 04:48:03 Time Management - Training Seminar in Cape Town
Previous Message Alvaro Herrera 2009-10-01 01:26:11 Re: Weird behavior with "sensitive" cursors.