Re: [HACKERS] Re: [BUGS] BUG #14821:idle_in_transaction_session_timeout sometimes gets ignored when statementtimeout is pending
От | Andres Freund |
---|---|
Тема | Re: [HACKERS] Re: [BUGS] BUG #14821:idle_in_transaction_session_timeout sometimes gets ignored when statementtimeout is pending |
Дата | |
Msg-id | 20171011211120.2qpv4gzirbh7rbrg@alap3.anarazel.de обсуждение исходный текст |
Ответ на | Re: [BUGS] BUG #14821: idle_in_transaction_session_timeout sometimesgets ignored when statement timeout is pending (Lukas Fittl <lukas@fittl.com>) |
Ответы |
Re: [HACKERS] Re: [BUGS] BUG #14821: idle_in_transaction_session_timeoutsometimes gets ignored when statement timeout is pending
|
Список | pgsql-bugs |
Hi, On 2017-09-20 20:27:05 -0700, Lukas Fittl wrote: > As per the bug report at > https://www.postgresql.org/message-id/20170921010956.17345.61461%40wrigleys.postgresql.org > it seems that the query cancellation holdoff logic in ProcessInterrupts is > a bit overly aggressive in keeping other interrupts from running. > > In particular I've seen an issue in the wild where > idle_in_transaction_session_timeout did not get triggered because > the HOLD_CANCEL_INTERRUPTS() in SocketBackend wraps around a pq_getbyte() > call, and so ProcessInterrupts doesn't do anything when it gets called > because the query cancel holdoff counter is positive. > > Andres suggested the following re-ordering of the logic on -bugs: I've pushed this. Thanks for the report & fix! Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления: