Re: BUG #1592: "with hold" cursor problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1592: "with hold" cursor problem
Дата
Msg-id 2668.1113237977@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1592: "with hold" cursor problem  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #1592: "with hold" cursor problem
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: BUG #1581: Problem with capitalised DB names...