Re: Transaction timeout
邱宇航 <iamqyh@gmail.com>
From: 邱宇航 <iamqyh@gmail.com>
To: "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Cc: Japin Li <japinli@hotmail.com>,
Fujii Masao <masao.fujii@oss.nttdata.com>,
Andrey Borodin <amborodin86@gmail.com>,
Andres Freund <andres@anarazel.de>,
Michael Paquier <michael.paquier@gmail.com>,
Nikolay Samokhvalov <samokhvalov@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-07T10:39:55Z
Lists: pgsql-hackers
Hi,
I read the V6 patch and found something needs to be improved.
Prepared transactions should also be documented.
A value of zero (the default) disables the timeout.
+ This timeout is not applied to prepared transactions. Only transactions
+ with user connections are affected.
Missing 'time'.
- gettext_noop("Sets the maximum allowed in a transaction."),
+ gettext_noop("Sets the maximum allowed time in a transaction."),
16 is already released. It's 17 now.
- if (AH->remoteVersion >= 160000)
+ if (AH->remoteVersion >= 170000)
ExecuteSqlStatement(AH, "SET transaction_timeout = 0");
And I test the V6 patch and it works as expected.
--
Yuhang Qiu
Commits
-
Add TAP tests for timeouts
- eeefd4280f6e 17.0 landed
-
Remove flaky isolation tests for timeouts
- a661bf7b0f56 17.0 landed
-
Followup fixes for transaction_timeout
- bf82f43790a6 17.0 landed
-
Introduce transaction_timeout
- 51efe38cb92f 17.0 landed
-
On systems that have setsid(2) (which should be just about everything except
- 3ad0728c817b 8.2.0 cited