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: Add PostgreSQL::Test::Cluster::advance_wal
Date: Thu, 21 Dec 2023 01:19:44 +0000
Message-ID: <E1rG7iy-00BA44-4q@gemulon.postgresql.org> (raw)

Add PostgreSQL::Test::Cluster::advance_wal

This is a function that makes a node jump by N WAL segments, which is
something a couple of tests have been relying on for some cases related
to streaming, replication slot limits and logical decoding on standbys.
Hence, this centralizes the logic, while making it cheaper by relying on
pg_logical_emit_message() to emit WAL records before switching to a new
segment.

Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Euler Taveira
Discussion: https://postgr.es/m/CALj2ACU3R8QFCvDewHCMKjgb2w_-CMCyd6DAK=Jb-af14da5eg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c161ab74f76af8e0f3c6b349438525ad9575683b

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm           | 25 +++++++++++
src/test/recovery/t/001_stream_rep.pl              |  6 +--
src/test/recovery/t/019_replslot_limit.pl          | 49 +++++++---------------
.../recovery/t/035_standby_logical_decoding.pl     |  7 +---
4 files changed, 42 insertions(+), 45 deletions(-)



Message-ID: <E1rG7iy-00BA44-4q@gemulon.postgresql.org>
Permalink:  ../E1rG7iy-00BA44-4q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rG7iy-00BA44-4q@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: Add PostgreSQL::Test::Cluster::advance_wal
  In-Reply-To: <E1rG7iy-00BA44-4q@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