pgsql: Fix BF introduced in commit ddd5f4f54a.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix BF introduced in commit ddd5f4f54a.
Date: 2024-02-14 11:00:24
Message-ID: E1raD04-006AqX-JI@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix BF introduced in commit ddd5f4f54a.

The failure is that the remote slot is not synchronized after the same
slot on standby gets invalidated. The reason was that remote_slot's
restart_lsn was lagged behind the standby's oldest WAL segment. The test
didn't ensure that remote_slot's LSN was advanced to the latest position
before we tried to sync the slots via new the function
pg_sync_replication_slots().

Discussion: https://postgr.es/m/CAA4eK1JLBi3HzenB6do3_hd78kN0UDD1mz-vumWE52XHHEq5Bw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/test/recovery/t/040_standby_failover_slots_sync.pl | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-02-14 16:30:49 pgsql: Fix multiranges to behave more like dependent types.
Previous Message Daniel Gustafsson 2024-02-14 10:14:16 pgsql: doc: Remove links to further reading from pgcrypto docs