Ensure standby promotion point in 043_wal_replay_wait.pl
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 17 Sep 2024 19:51:06 +0000 (22:51 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 17 Sep 2024 19:51:06 +0000 (22:51 +0300)
commit2520226c953c0b443791a185a8d1fb8b71d9fe9e
treede0514a766c273ce5e99aca85777ee720618cc36
parent85b98b8d5a48092acd03db76a8bf02d9c38c1d79
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
src/test/recovery/t/043_wal_replay_wait.pl