Re: bug w/ cursors and savepoints

From: Neil Conway <neilc(at)samurai(dot)com>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: bug w/ cursors and savepoints
Date: 2005-01-26 23:55:47
Message-ID: 1106783747.3226.18.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2005-01-26 at 12:02 -0300, Alvaro Herrera wrote:
> > The policy will now be: cursor creation is transaction, but cursor state
> > modifications (FETCH) are non-transactional -- right? I wonder if it
> > wouldn't be more consistent to make cursor deletion (CLOSE)
> > transactional as well -- so that a CLOSE in an aborted subtransaction
> > would not actually destroy the cursor.
>
> Hmm ... not sure how hard that is.

Would it work to record the sub XID of the deleting subtxn on CLOSE, and
then consider whether to "really" do the deletion when the subtxn
commits/aborts?

-Neil

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-01-26 23:59:33 Re: bug w/ cursors and savepoints
Previous Message Tom Lane 2005-01-26 22:56:23 Re: bug w/ cursors and savepoints