pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure standby promotion point in 043_wal_replay_wait.pl
Date: Tue, 17 Sep 2024 19:51:15 +0000
Message-ID: <E1sqeEF-001Y6D-4H@gemulon.postgresql.org> (raw)

Ensure standby promotion point in 043_wal_replay_wait.pl

This commit ensures standby will be promoted at least at the primary insert
LSN we have just observed.  We use pg_switch_wal() to force the insert LSN
to be written then wait for standby to catchup.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/1d7b08f2-64a2-77fb-c666-c9a74c68eeda%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2520226c953c0b443791a185a8d1fb8b71d9fe9e

Modified Files
--------------
src/test/recovery/t/043_wal_replay_wait.pl | 6 ++++++
1 file changed, 6 insertions(+)



Message-ID: <E1sqeEF-001Y6D-4H@gemulon.postgresql.org>
Permalink:  ../E1sqeEF-001Y6D-4H@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sqeEF-001Y6D-4H@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: Ensure standby promotion point in 043_wal_replay_wait.pl
  In-Reply-To: <E1sqeEF-001Y6D-4H@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