Re: BUG #1592: "with hold" cursor problem - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1592: "with hold" cursor problem
Date
Msg-id 2668.1113237977@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #1592: "with hold" cursor problem  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-bugs
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> One further question is if it's right for the holdable portal to fire
> trigger at transaction commit.  ISTM the non-surprising answer would be
> for them to fire at FETCH time.  (But of course this is hard to
> implement, since at that time we don't have executor machinery ...)

Our definition of a holdable cursor is that the query execution is
completed during transaction commit, and all you have left after that
is a static image of the results.  So it's consistent to fire any
associated triggers during commit, too.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #1592: "with hold" cursor problem
Next
From: Bruno Wolff III
Date:
Subject: Re: BUG #1581: Problem with capitalised DB names...