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

From Tom Lane
Subject Re: bug w/ cursors and savepoints
Date
Msg-id 4843.1106674377@sss.pgh.pa.us
Whole thread Raw
In response to Re: bug w/ cursors and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: bug w/ cursors and savepoints  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
I wrote:
> So I think the rule ought to be that cursors
> created inside a failed subtransaction go away.

Other bits of recollection bubbling up: I think that one reason we made
portals not go away instantly on error is that the JDBC guys objected,
feeling that it made for weird special cases at the protocol level.

So the right fix might involve putting the portal into PORTAL_FAILED
state rather than just zapping it completely.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Nicolai Tufar
Date:
Subject: Re: Goals for 8.1
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: improved support for compounds in tsearch2