]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve tests for recovery_target_timeline GUC.
authorFujii Masao <fujii@postgresql.org>
Fri, 6 Mar 2026 07:02:09 +0000 (16:02 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 6 Mar 2026 07:02:57 +0000 (16:02 +0900)
commit2007df43332b7c4d153bcd2153e32d5a76f7e3ac
tree55112e0d25252064068b3518d2bab4fde177ae8b
parentd5ea206728de7cb301d2f572055a76d4ea43bc8d
Improve tests for recovery_target_timeline GUC.

Commit fd7d7b71913 added regression tests to verify recovery_target_timeline
settings. To confirm that invalid values are rejected, those tests started the
server with an invalid setting and then verified that startup failed. While
functionally correct, this approach was expensive because it required
setting up and starting the server for each test case.

This commit updates the tests for recovery_target_timeline to use
the simpler approach introduced by commit bffd7130 for recovery_target_xid,
using ALTER SYSTEM SET to verify that invalid settings are rejected.
This avoids the need to set up and start the server when checking invalid
recovery_target_timeline values.

Author: David Steele <david@pgbackrest.org>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwG44vZbSoBmg076G+xkR6n=Tj2=q+fVkfP7yEsyF1daFA@mail.gmail.com
src/test/recovery/t/003_recovery_targets.pl