From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix WAL file selection in 013_rewind test
Date: Mon, 28 Sep 2026 15:49:06 +0000
Message-ID: <E1xBDbG-00000001d1F-1M71@gemulon.postgresql.org> (raw)
Fix WAL file selection in 013_rewind test
Without an explicit WAL filename, pg_waldump determines the segment
size from the first WAL-named directory entry. A preallocated
segment with an uninitialized header can make this fail before the
checkpoint is read.
Pass the WAL filename recorded in backup_label to avoid depending
on directory enumeration order. Use command_like() so command
failures and stderr are checked rather than appearing only as an
empty-output mismatch.
This was independently reported by Nazir Bilal Yavuz and Alexander
Lakhin.
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reported-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAN55FZ1Yak_xBqMaDQsD7atpBkGLEkF-DKXcs3nLHM1Uq4YRew%40mail.gmail.com
Discussion: https://postgr.es/m/ffd837c5-dc22-4db1-a2d8-b623cbe9b30c@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a5447a2deaca65c69f1838240f6bdb3ff85c9577
Modified Files
--------------
src/test/modules/test_checksums/t/013_rewind.pl | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: dgustafsson@postgresql.org
Subject: Re: pgsql: Fix WAL file selection in 013_rewind test
In-Reply-To: <E1xBDbG-00000001d1F-1M71@gemulon.postgresql.org>
References: <E1xBDbG-00000001d1F-1M71@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