agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: 049_wait_for_lsn.pl: create function and procedure at once
Date: Mon, 20 Apr 2026 10:20:56 +0000
Message-ID: <E1wElkN-001qeK-2q@gemulon.postgresql.org> (raw)

049_wait_for_lsn.pl: create function and procedure at once

Create the PL/pgSQL function and procedure for the top-level WAIT FOR
checks in a single transaction, then wait once for standby replay before
running both tests.  Also revise some surrounding comments.

This avoids an extra 'wait_for_catchup()' on the delayed standby without
changing the test coverage.

Discussion: https://postgr.es/m/CABPTF7WZ1yuYz8V%3Dxsbghg8e7qaAm5MpyNw6BthWcbN7%2BP6biw%40mail.gmail.com
Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/23cbadeeb4738b8f5e615f0c5a2ef7af6111d512

Modified Files
--------------
src/test/recovery/t/049_wait_for_lsn.pl | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)



Message-ID: <E1wElkN-001qeK-2q@gemulon.postgresql.org>
Permalink:  ../E1wElkN-001qeK-2q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wElkN-001qeK-2q@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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: 049_wait_for_lsn.pl: create function and procedure at once
  In-Reply-To: <E1wElkN-001qeK-2q@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox