model-writtenrun 3157 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Feb - May 2023 · 5 entries
- Julien Rouhaud opened the thread in #1 because pg_upgrade recreated subscriptions without their relation state, making it unsafe to enable and refresh them without losing publisher changes.
- The early discussion favored preserving subscription relations only during binary upgrade, using retained relation OIDs, and Julien implemented that approach with special ALTER SUBSCRIPTION syntax in #10.
- Amit Kapila explained that replication origins and their remote LSNs also had to survive in #11 and #27, leading Julien to add origin restoration, an optional preservation switch, and ready-state checks in #28.
- Alternative setup sequences discussed in #17 and #18 clarified that Julien's physical-to-logical migration workflow and upgrading existing logical subscribers both needed consideration.
- Julien added TAP coverage and invalid-origin checks in #33; reviews and testing by Hayato Kuroda and Peter Smith exposed origin-handling mistakes and synchronization races that were addressed in #44.
Jun - Jul 2023 · 1 entry
- Michael Paquier opposed adding SQL grammar solely for pg_upgrade in #50, while Amit supported internal helper functions and default preservation in #51 and #54.
Sep - Oct 2023 · 6 entries
- After the long gap, Vignesh took over implementation in #56 and #58, replacing special SQL syntax with upgrade helpers, making preservation automatic, and introducing separate subscription-relation dump objects.
- Hayato identified that apply workers could contact publishers during upgrade in #62, prompting a launcher-suppression prerequisite in #66; Hou's alternative GUC approach was credited in #68 and implemented in #70.
- Michael proposed retaining a backend IsBinaryUpgrade guard in #79, but Hayato argued in #81 and #86 that setting the GUC was sufficient and consistent with publisher upgrades.
- Michael viewed subscriber and publisher upgrades as separately solvable in #57 and #78, whereas Amit warned in #80 that losing publisher slots could make resumed replication inconsistent.
- Once publisher-side support was available, Michael reopened implementation work in #93, and Vignesh refreshed the full series in #94 with PostgreSQL 17 gating, clearer documentation, and the GUC-based launcher fix.
- Amit's analysis of tablesync slot and origin dependencies in #95 led to missing-origin checks and provisional support for INIT, SYNCDONE, and READY states in #99.
Nov 2023 - Jan 2024 · 13 entries
- Michael committed the launcher component of #99, with comment edits, as 7021d3b176, and Vignesh continued the remaining subscription work in #103.
- Peter's review in #100 arrived just after that commit and prompted the GUC-hook proposal #105; Michael considered that extra backend machinery excessive for an override users should not make in #101, and the hook did not enter the supplied commits.
- Review across #103, #108, and #114 replaced direct test catalog manipulation with a natural primary-key conflict and strengthened documentation, diagnostic checks, and nonzero origin-LSN coverage.
- Amit requested origin locking and sufficient replication-origin capacity in #119 and #120, and Vignesh added those protections in #124.
- Vignesh separately proposed retaining subscription OIDs in #129 and corrected the attachment in #130, while Michael recommended handling this after the main feature and adding explicit tests in #133.
- Michael's failure experiments in #117 and Amit's concerns about relying on unused tablesync origins in #134 led to dropping SYNCDONE support, leaving only INIT and READY in #141.
- Peter's continuing reviews drove the intermediate refinements, with Shlok Kyal contributing #139, and Vignesh briefly combined the main feature with tested OID preservation in #145.
- Amit questioned restoring every subscription disabled in #146, and Vignesh preserved the original enabled status in #150, now that launcher suppression prevented replication during restoration.
- Amit supplied the fix-up #153 and requested proper relation locking, early lock release, simpler tests, and deferral of OID preservation; Vignesh incorporated those changes into #158.
- Peter reviewed the revised diagnostics and tests in #161, and Amit caught a missing shared-object unlock in #162, which was corrected in #163.
- Amit prepared #164 for commit, Michael clarified locking rationale in #165, and Masahiko Sawada improved queries, synchronization assertions, and catalog lookups in #167 and #173.
- After the cleanup in #174, Amit posted the cosmetic final revision #175 and committed it with a catalog-version bump as 9a17be1e24, crediting Vignesh, Julien, and Shlok.
- After landing, Amit proposed complete publisher/subscriber upgrade documentation in #179, Michael suggested broader multi-node tests in #180, and the IsBinaryUpgrade follow-up moved to another thread through #185.
Feb - Mar 2024 · 3 entries
- Justin Pryzby reported in #187 that 004_subscription.pl restarted an old cluster after a successful link-mode upgrade, and Hayato's #189 moved successful upgrade testing after all failure cases.
- Amit requested separate test objects in #191, Vignesh reviewed subsequent refinements, and Hayato's final #200 landed with comment edits as f17529b710.
- Vignesh diagnosed a buildfarm race in #203 caused by checking table contents before regress_sub4 caught up, and Hayato approved the fix in #204 before Amit committed it with a slightly different wait placement as 677a45c4ae.
Jul 2024 · 3 entries
- Nathan Bossart identified unnecessary per-database subscription counting in #206 and proposed one query against the shared pg_subscription catalog in #207.
- Michael corrected a stale comment in #208, Amit proposed moving collection into the old-cluster checks in #214, and Nathan's final #215 landed unchanged as 73de50e13e, with a PostgreSQL 17 backport confirmed in #217.
- Broader logical-slot retrieval optimization was deferred for further design because of database-specific processing and parallelization concerns in #212 and #213; Nathan closed the PostgreSQL 17 open item in #220, and Michael agreed in the final message #221.