Re: bug w/ cursors and savepoints - Mailing list pgsql-hackers

From Neil Conway
Subject Re: bug w/ cursors and savepoints
Date
Msg-id 1106783747.3226.18.camel@localhost.localdomain
Whole thread Raw
In response to Re: bug w/ cursors and savepoints  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: bug w/ cursors and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug w/ cursors and savepoints
Next
From: Tom Lane
Date:
Subject: Re: bug w/ cursors and savepoints