=== Applying patches on top of PostgreSQL commit ID 206e71935e1ed86e6116b118d7b77e78efcff8b8 === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Fri Nov 13 23:49:30 UTC 2026 On branch cf/7366 nothing to commit, working tree clean === using 'git am' to apply patch ./v2-0001-Fix-clobbering-of-shared-statusFlags-when-a-slot-.patch === Applying: Fix clobbering of shared statusFlags when a slot is invalidated Using index info to reconstruct a base tree... M src/backend/replication/slot.c M src/test/recovery/meson.build Falling back to patching base and 3-way merge... Auto-merging src/test/recovery/meson.build CONFLICT (content): Merge conflict in src/test/recovery/meson.build Auto-merging src/backend/replication/slot.c CONFLICT (content): Merge conflict in src/backend/replication/slot.c error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 Fix clobbering of shared statusFlags when a slot is invalidated When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". === using patch(1) to apply patch ./v2-0001-Fix-clobbering-of-shared-statusFlags-when-a-slot-.patch === patching file src/backend/replication/slot.c Hunk #1 FAILED at 831. 1 out of 1 hunk FAILED -- saving rejects to file src/backend/replication/slot.c.rej patching file src/test/recovery/meson.build Hunk #1 FAILED at 66. 1 out of 1 hunk FAILED -- saving rejects to file src/test/recovery/meson.build.rej patching file src/test/recovery/t/058_slot_invalidation_statusflags.pl Removing src/backend/replication/slot.c.rej Removing src/test/recovery/meson.build.rej Removing src/test/recovery/t/058_slot_invalidation_statusflags.pl === using 'git apply' to apply patch ./v2-0001-Fix-clobbering-of-shared-statusFlags-when-a-slot-.patch === Applied patch to 'src/backend/replication/slot.c' with conflicts. Applied patch to 'src/test/recovery/meson.build' with conflicts. Falling back to direct application... U src/backend/replication/slot.c U src/test/recovery/meson.build diff --cc src/backend/replication/slot.c index a311aee85a9,c84d021aeaf..00000000000 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@@ -832,10 -832,10 +832,17 @@@ ReplicationSlotRelease(void } /* ++<<<<<<< ours + * Update statusFlags only if PROC_IN_LOGICAL_DECODING is set. An + * auxiliary process (checkpointer or startup process) may invalidate a + * slot. Auxiliary processes are not in the proc array, and pgxactoff + * would point at something which is not its own. ++======= + * Only touch ProcGlobal->statusFlags[] if we set + * PROC_IN_LOGICAL_DECODING. An auxiliary process that invalidates a slot + * gets here too. It is not in the proc array, so the entry at its + * pgxactoff is not its own. ++>>>>>>> theirs */ if (MyProc->statusFlags & PROC_IN_LOGICAL_DECODING) { diff --cc src/test/recovery/meson.build index b6ac9dd07a7,089dd5a4348..00000000000 --- a/src/test/recovery/meson.build +++ b/src/test/recovery/meson.build @@@ -66,9 -66,7 +66,13 @@@ tests += 't/055_cascade_reconnect.pl', 't/056_standby_snapshot_export.pl', 't/057_snapshot_commit_race.pl', ++<<<<<<< ours + 't/058_shutdown_crash_restart.pl', + 't/059_remote_apply_status_interval.pl', + 't/060_multixact_crashed_updater.pl', ++======= + 't/058_slot_invalidation_statusflags.pl', ++>>>>>>> theirs ], }, }