model-writtenrun 2068 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct - Nov 2023 · 9 entries
- Kyotaro Horiguchi opened the thread with two alternatives for correcting replication-slot error and hint wording during binary upgrade in #1, prompting wording suggestions from Bharath Rupireddy, Amit Kapila, and Peter Smith in #2, #3, and #4.
- The discussion moved from wording to prevention when Kyotaro proposed rejecting the unsafe setting earlier in #8 and Alvaro Herrera warned that raising this error during a shutdown checkpoint could be harmful in #9.
- Kyotaro developed a GUC check hook and replaced the late error with an assertion in #11 and #15, while Zhijie Hou noted in #13 that the restriction would also reject harmless settings when no slots needed protection.
- Bharath reviewed initialization order, diagnostics, test coverage, and function placement in #14 and #20; Kyotaro moved the hook into xlog.c and revised its explanation in #21.
- Hayato Kuroda reported a successful rejection test in #19 and supplied a TAP test in #24, while Peter's review in #25 led Kyotaro to revise the assertion and diagnostic formatting in #26.
- The related launcher problem prompted a consistency debate, but Michael Paquier argued in #38 that preventing background-worker startup and preventing slot invalidation could use different mechanisms, with IsBinaryUpgrade directly controlling launcher registration.
- Kyotaro offered silently forcing the safe setting in #40, but Amit preferred rejecting explicit overrides in #41; Amit then posted the check-hook patch in #48, simplifying comments and dropping Hayato's test because he considered it unnecessary.
- Michael posted the independent launcher patch in #50, and Amit committed Kyotaro's check-hook work as 8bfb231b43, adding only the assertion explanation Alvaro requested in #49.
- Amit identified an inaccurate launcher comment in #51: the concern was source-cluster replication origins advancing after being copied, rather than apply workers running on the restored target; Michael agreed in #56 to wait for subscriber-upgrade support.
Jan 2024 · 2 entries
- Once subscriber-upgrade support was available, Michael resumed the launcher work with #57; Amit clarified the source-cluster scenario in #58, and Alvaro and Tom Lane refined the final wording in #62 and #63.
- Michael committed #57 with those comment refinements as 08c3ad27eb and announced the landing in #64.
Jul 2025 · 7 entries
- Tom revived the thread in July 2025 with #65, explaining that bug 18979 exposed a flaw in the original hook: it rejected settings from any configuration source even when pg_upgrade's effective setting would be safe.
- Dilip Kumar initially removed the hook and checked the effective setting through a pg_upgrade query in #67, but Tom rejected the added query and divided responsibility in #68, favoring enforcement entirely inside the server.
- Dilip responded with two patches in #70 that forced safe values for max_slot_wal_keep_size and idle_replication_slot_timeout, then adopted Amit's alternative from #71 to bypass WAL removal and logical-slot invalidation directly.
- The merged implementation in #75 removed both check hooks, their pg_upgrade overrides, and the old assertion; Alvaro endorsed it and supplied comment edits in #76, which Dilip incorporated in #77.
- Tom supported removing the exposed hooks from stable branches in #79, and after Vignesh identified the PostgreSQL 17 applicability problem in #81, Dilip supplied #83, omitting the timeout changes unavailable in that version.
- Vignesh questioned assertion removal and missing documentation in #84, but Amit explained in #85 that the static function was already bypassed and comparable binary-upgrade exceptions were undocumented; Vignesh accepted the outcome in #87.
- At the thread's final message, Tom clarified that the release freeze had not begun and Amit could proceed in #89; the subsequent supplied commit 24f6c1bd41 exactly matches #83, completing the fix with no outstanding revision request shown.