From 3426bfe502b9c9c0aabb30e9ce9b4396a2f003b7 Mon Sep 17 00:00:00 2001 From: Andrey Borodin Date: Tue, 13 Jan 2026 13:01:56 +0500 Subject: [PATCH] pg_waldump tests: less strict LSN comparison for blocks from --save-fullpage The test 002_save_fullpage.pl fails with wal consistency checks. This happens due to strict comparison of LSNs of outputed blocks. If we allow LSN in file to be equal to LSN in file name - the test will pass. --- src/bin/pg_waldump/t/002_save_fullpage.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_waldump/t/002_save_fullpage.pl b/src/bin/pg_waldump/t/002_save_fullpage.pl index 7286f601ab4..9af50c4994a 100644 --- a/src/bin/pg_waldump/t/002_save_fullpage.pl +++ b/src/bin/pg_waldump/t/002_save_fullpage.pl @@ -105,8 +105,8 @@ for my $fullpath (glob "$tmp_folder/raw/*") my ($hi_lsn_bk, $lo_lsn_bk) = get_block_lsn($fullpath, $blocksize); # The LSN on the block comes before the file's LSN. - ok( $hi_lsn_fn . $lo_lsn_fn gt $hi_lsn_bk . $lo_lsn_bk, - 'LSN stored in the file precedes the one stored in the block'); + ok( $hi_lsn_fn . $lo_lsn_fn ge $hi_lsn_bk . $lo_lsn_bk, + "LSN stored in the file $hi_lsn_fn/$lo_lsn_fn precedes the one stored in the block $hi_lsn_bk/$lo_lsn_bk"); } ok($file_count > 0, 'verify that at least one block has been saved'); -- 2.51.2