]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_waldump: Relax LSN comparison check in TAP test
authorMichael Paquier <michael@paquier.xyz>
Wed, 14 Jan 2026 07:02:39 +0000 (16:02 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 14 Jan 2026 07:02:39 +0000 (16:02 +0900)
commit2170e52193c6f02ddb915f833f269714c9c40eae
treeb996521e539eaa73a0d6dafe29597107abca5e17
parent254038c80de9a006d257f94d160d18b9c104a8a1
pg_waldump: Relax LSN comparison check in TAP test

The test 002_save_fullpage.pl, checking --save-fullpage fails with
wal_consistency_checking enabled, due to the fact that the block saved
in the file has the same LSN as the LSN used in the file name.  The test
required that the block LSN is stritly lower than file LSN.  This commit
relaxes the check a bit, by allowing the LSNs to match.

While on it, the test name is reworded to include some information about
the file and block LSNs, which is useful for debugging.

Author: Andrey Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/4226AED7-E38F-419B-AAED-9BC853FB55DE@yandex-team.ru
Backpatch-through: 16
src/bin/pg_waldump/t/002_save_fullpage.pl