pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_waldump: Relax LSN comparison check in TAP test
Date: Wed, 14 Jan 2026 07:03:02 +0000
Message-ID: <E1vfuuD-000NaK-2w@gemulon.postgresql.org> (raw)

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

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2170e52193c6f02ddb915f833f269714c9c40eae

Modified Files
--------------
src/bin/pg_waldump/t/002_save_fullpage.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1vfuuD-000NaK-2w@gemulon.postgresql.org>
Permalink:  ../E1vfuuD-000NaK-2w@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vfuuD-000NaK-2w@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_waldump: Relax LSN comparison check in TAP test
  In-Reply-To: <E1vfuuD-000NaK-2w@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox