Re: statement_timeout vs DECLARE CURSOR

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: statement_timeout vs DECLARE CURSOR
Дата
Msg-id B07C838E-5E08-40DC-89BD-BE6EB9EF8D80@thebuild.com
обсуждение исходный текст
Ответ на statement_timeout vs DECLARE CURSOR  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: statement_timeout vs DECLARE CURSOR  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

> On Sep 27, 2021, at 10:42, Christophe Pettus <xof@thebuild.com> wrote:
> We've encountered some unexpected behavior with statement_timeout not cancelling a query in DECLARE CURSOR, but only
ifthe DECLARE CURSOR is outside of a transaction: 

A bit more poking revealed the reason: The ON HOLD cursor's query is executed at commit time (which is, logically, not
interruptible),but that's all wrapped in the single statement outside of a transaction. 


В списке pgsql-general по дате отправления:

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: statement_timeout vs DECLARE CURSOR
Следующее
От: Tom Lane
Дата:
Сообщение: Re: statement_timeout vs DECLARE CURSOR