pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid idle WAL waits in checksum tests
Date: Mon, 28 Sep 2026 15:49:06 +0000
Message-ID: <E1xBDbG-00000001d1D-1CrQ@gemulon.postgresql.org> (raw)

Avoid idle WAL waits in checksum tests

Switch to wait_for_replay_catchup in checksum tests to explicitly
wait for the upstream flush LSN and not the write LSN.  The write
LSN can include unrelated unflushed WAL which isn't available for
streaming on an idle primary.

In the test for using a rewound node as standby of a new primary in
the 013_rewind suite; also switch WAL on the source before starting
the target.  This flushes through the minimum recovery point chosen
to avoid a startup delay while an unflushed full_page_writes change
waits for the background writer to log its next snapshot.

This reduces test times significantly without changing the semantics
of the tests.

Author: Nazir Bilal Yavuz <byavuz81@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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f76ed5d6baa9bfa9ebd2f1d97eaf6dcbfe76b5f

Modified Files
--------------
src/test/modules/test_checksums/t/003_standby_restarts.pl | 12 ++++--------
src/test/modules/test_checksums/t/011_standby_straddle.pl | 15 +++++----------
src/test/modules/test_checksums/t/013_rewind.pl           | 12 +++++++++---
.../test_checksums/t/021_rewind_divergent_transitions.pl  |  8 ++++----
4 files changed, 22 insertions(+), 25 deletions(-)



Message-ID: <E1xBDbG-00000001d1D-1CrQ@gemulon.postgresql.org>
Permalink:  ../E1xBDbG-00000001d1D-1CrQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xBDbG-00000001d1D-1CrQ@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 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: Avoid idle WAL waits in checksum tests
  In-Reply-To: <E1xBDbG-00000001d1D-1CrQ@gemulon.postgresql.org>
  References: <E1xBDbG-00000001d1D-1CrQ@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