pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Stabilize recently added tests in 051_effective_wal_level.pl. 2+ messages / 1 participants [nested] [flat]
* pgsql: Stabilize recently added tests in 051_effective_wal_level.pl. @ 2026-10-08 17:33 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Masahiko Sawada @ 2026-10-08 17:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize recently added tests in 051_effective_wal_level.pl. Commit 1f2245371e3 added a test for the case where logical decoding is disabled and re-enabled while synchronizing a replication slot. Its cleanup assumed the slot re-created on retry would still be temporary, and so would be gone once the corresponding remote slot was dropped. That isn't guaranteed: the catalog_xmin reserved on the standby is not necessarily ahead of the remote slot's. In that case the slot is persisted on the first retry, and the subsequent logical decoding deactivation invalidates it on the standby rather than dropping it, so the check that no synced slot is left behind fails. Stabilize the cleanup by calling an extra pg_sync_replication_slots() after dropping the remote slot and before disabling logical decoding on the primary. Per buildfarm member skink. Reported-by: Fujii Masao <masao.fujii@gmail.com> Suggested-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: shveta malik <shveta.malik@gmail.com> Discussion: https://postgr.es/m/CAHGQGwFWXASACRnhHJgEdk8nWyLw4bLLDhiEiKSqBqd+tzJ2Pg@mail.gmail.com Backpatch-through: 19 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d64e5357485534f8aca4b700bde6c9145fdb243b Modified Files -------------- src/test/recovery/t/051_effective_wal_level.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Stabilize recently added tests in 051_effective_wal_level.pl. @ 2026-10-08 17:33 Masahiko Sawada <msawada@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Masahiko Sawada @ 2026-10-08 17:33 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize recently added tests in 051_effective_wal_level.pl. Commit 1f2245371e3 added a test for the case where logical decoding is disabled and re-enabled while synchronizing a replication slot. Its cleanup assumed the slot re-created on retry would still be temporary, and so would be gone once the corresponding remote slot was dropped. That isn't guaranteed: the catalog_xmin reserved on the standby is not necessarily ahead of the remote slot's. In that case the slot is persisted on the first retry, and the subsequent logical decoding deactivation invalidates it on the standby rather than dropping it, so the check that no synced slot is left behind fails. Stabilize the cleanup by calling an extra pg_sync_replication_slots() after dropping the remote slot and before disabling logical decoding on the primary. Per buildfarm member skink. Reported-by: Fujii Masao <masao.fujii@gmail.com> Suggested-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: shveta malik <shveta.malik@gmail.com> Discussion: https://postgr.es/m/CAHGQGwFWXASACRnhHJgEdk8nWyLw4bLLDhiEiKSqBqd+tzJ2Pg@mail.gmail.com Backpatch-through: 19 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d53e54f5e53ce77f283d911fe31b80915732a600 Modified Files -------------- src/test/recovery/t/051_effective_wal_level.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-10-08 17:33 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-08 17:33 pgsql: Stabilize recently added tests in 051_effective_wal_level.pl. Masahiko Sawada <msawada@postgresql.org> 2026-10-08 17:33 pgsql: Stabilize recently added tests in 051_effective_wal_level.pl. Masahiko Sawada <msawada@postgresql.org>
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