Fix intermittent BF failure in 040_standby_failover_slots_sync.
Amit Kapila <akapila@postgresql.org>
Fix intermittent BF failure in 040_standby_failover_slots_sync. Commit 0d2d4a0ec3 introduced a test that verifies replication slot synchronization to a standby server via SQL API. However, the test did not configure synchronized_standby_slots. Without this setting, logical failover slots can advance beyond the physical replication slot, causing intermittent synchronization failures. Author: Hou Zhijie <houzj.fnst@fujitsu.com> Discussion: https://postgr.es/m/TY4PR01MB16907DF70205308BE918E0D4494ABA@TY4PR01MB16907.jpnprd01.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/recovery/t/040_standby_failover_slots_sync.pl | modified | +8 −0 |
Discussion
- Improve pg_sync_replication_slots() to wait for primary to advance 167 messages · 2025-06-24 → 2026-03-05