Re: Transaction timeout
От | Andrey M. Borodin |
---|---|
Тема | Re: Transaction timeout |
Дата | |
Msg-id | 09C069FE-99D2-4298-B1A5-01058DE6CBF7@yandex-team.ru обсуждение исходный текст |
Ответ на | Re: Transaction timeout (Fujii Masao <masao.fujii@oss.nttdata.com>) |
Ответы |
Re: Transaction timeout
Re: Transaction timeout |
Список | pgsql-hackers |
Thanks for looking into this! > On 6 Sep 2023, at 13:16, Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > > While testing v4 patch, I noticed it doesn't handle the COMMIT AND CHAIN case correctly. > When COMMIT AND CHAIN is executed, I believe the transaction timeout counter should reset > and start from zero with the next transaction. However, it appears that the current > v4 patch doesn't reset the counter in this scenario. Can you confirm this? Yes, I was not aware of this feature. I'll test and fix this. > With the v4 patch, I found that timeout errors no longer occur during the idle in > transaction phase. Instead, they occur when the next statement is executed. Is this > the intended behavior? AFAIR I had been testing that behaviour of "idle in transaction" was intact. I'll check that again. > I thought some users might want to use the transaction timeout > feature to prevent prolonged transactions and promptly release resources (e.g., locks) > in case of a timeout, similar to idle_in_transaction_session_timeout. Yes, this is exactly how I was expecting the feature to behave: empty up max_connections slots for long-hanging transactions. Thanks for your findings, I'll check and post new version! Best regards, Andrey Borodin.
В списке pgsql-hackers по дате отправления: