model-writtenrun 7202 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Apr - Jul 2023 · 8 entries
- Hayato Kuroda proposed preserving publisher logical slots by dumping their definitions with pg_dump and recreating them after pg_upgrade's final pg_resetwal, which otherwise discards WAL needed by newly created slots #1.
- Julien Rouhaud identified the danger of disconnected subscribers leaving unconsumed changes, establishing the need for explicit catch-up checks, while the interface was narrowed to logical slots because physical-slot preservation required separate work #3 #8 #9.
- Peter Smith's early reviews corrected naming, dump metadata, memory handling and tests, producing successive revisions without changing the initial dump-and-restore design #2 #13 #19.
- Julien diagnosed that confirmed_flush_lsn could advance in memory without dirtying a logical slot, supplied a shutdown-persistence prerequisite, and Hayato incorporated it alongside checks allowing only the final shutdown record to remain #20 #21.
- Vignesh found that the two-phase flag was being passed as the temporary-slot argument and requested early configuration checks; Hayato corrected restoration and added wal_level and slot-capacity validation #22 #23 #25.
- Julien distinguished live prerequisite checking from an actual stopped-server upgrade, and Peter Eisentraut recommended test_decoding for less timing-sensitive tests, leading to separate live checks and revised TAP coverage #26 #28 #32 #33.
- After further review and a summer gap, Amit questioned shutdown ordering, and Hayato experimented with keeping logical walsenders alive through the shutdown checkpoint so catch-up could be checked by WAL-position equality #63 #68.
- Vignesh supplied WAL-record inspection as an alternative, but the shutdown-ordering experiment encountered macOS failures and still did not solve persistence completely, so Hayato restored Julien's checkpoint approach #69 #73 #74.
Aug 2023 · 6 entries
- Jonathan Katz argued for migration by default, while Amit and Hayato settled on preserving usable unreserved slots and rejecting lost slots to avoid silently losing subscriber data #71 #78 #79 #97.
- Masahiko Sawada showed that merely recognizing a shutdown record could accept an older shutdown and highlighted harmless WAL generated during upgrade, prompting broader validation of intervening record types #80 #86 #97.
- Discussion among Sawada, Amit and Bruce Momjian led away from pg_dump and new external readers; Hou posted a rewrite that recreated slots directly in pg_upgrade, removed the exclusion switch and compared confirmed_flush_lsn with pg_controldata's checkpoint position #106 #107 #110 #111.
- Hayato added output-plugin library checks and briefly parallelized slot creation, then restored serial execution after measurements showed process and connection overhead made parallel creation slower #113 #118 #130.
- Amit moved detailed checkpoint-persistence review into a separate thread while retaining mirrored patches here, and the migration design was restricted to PostgreSQL 17 or later source clusters because the prerequisite was not being backpatched #144 #156 #160.
- Hayato defended migration by default as protection against forgotten slots, documented physical-standby limitations, and incorporated Amit's fixup while merging migration and validation into one feature patch #169 #175 #178 #183.
Sep 2023 · 7 entries
- Hou warned that repeated slot queries could observe inconsistent invalidation states, leading to centralized metadata collection and simpler invalid-slot and plugin handling #192 #193 #200.
- Hayato prevented required WAL from being removed during upgrade and added protection against slot invalidation, while temporarily removing a Windows-sensitive live-check test #205 #209.
- Amit discovered that an offline pg_upgrade --check generated additional shutdown WAL, causing a subsequent real upgrade to fail the checkpoint-equality requirement #230.
- The shutdown-persistence prerequisite landed as e0b2eed047 unchanged from the later #542315 in thread #48321, superseding the mirrored component in #226 here and leaving the migration feature under review.
- After considering and rejecting intrusive metadata changes, unacknowledged slot advancement and bypassing checks, Amit and Dilip favored inspecting intervening WAL; Hayato implemented a server-side validator permitting known harmless record types #235 #236 #238.
- Hou reported little overhead with up to 100 slots, and subsequent revisions merged validation into the main patch and fixed archive-mode WAL switches, older-version configuration handling and uninitialized slot counts #245 #247 #249 #255.
- Bharath challenged the hard-coded WAL whitelist and its handling of custom resource managers, leading to stronger failure assertions and an experimental decodability-callback patch #260 #274 #280 #294.
Oct 2023 · 9 entries
- After discussing the problem with Andres Freund, Amit proposed using logical decoding itself to identify pending changes, and Hayato implemented a silent-decoding prototype instead of adopting the callback branch #299 #305.
- Amit supplied a fixup for deciding when transactions require processing, and Hayato simplified the design by replacing the new silent mode with existing fast-forward decoding #314 #315.
- Hayato experimented with moving WAL-reset operations into pg_upgrade and adding an internal no-switch option, then withdrew that restructuring because changing established pg_resetwal behavior was too risky without a demonstrated need #317 #319.
- Further review combined transactional and nontransactional pending-WAL tests, addressed slot invalidation reported by Shlok, and corrected the ineffective slot advance demonstrated by Vignesh #322 #332 #344 #345.
- Bharath's review led to system-cache cleanup and error handling around decoding, and he subsequently reported successful tests and approval #347 #348 #353.
- Amit requested removing cross-version TAP infrastructure because the buildfarm did not exercise it, and Hayato prepared the final patch while cross-version testing and a slot-exclusion option remained separate follow-up ideas #354 #355 #357 #358.
- The migration feature landed as 29d0a77fa6 from #355, with only documentation terminology changes and a catalog-version bump beyond the posted implementation.
- Hou diagnosed Windows path-length failures, and Hayato's shorter report, test and node names landed unchanged as b195e6d482 from #364 #359.
- The rename omitted the Meson test list, so Hayato supplied the one-line correction in #372, committed unchanged as 8949b978ff.
Nov - Dec 2023 · 7 entries
- Reports from Peter Eisentraut and Andrew Dunstan prompted Hayato's working-directory fix, which Peter Smith verified with VPATH and Hou verified with Meson before it landed unchanged as 8af917be6b #373 #374 #375.
- Vignesh found a verbose-mode crash caused by uninitialized slot arrays and offered two alternatives; the refined zero-initialization patch in #380 landed unchanged as a7db71ed27 #377.
- Masahiko Sawada questioned the committed helper's special NULL handling and redundant permission check, beginning a cleanup discussion that eventually favored a strict function #384 #397.
- Hayato reproduced an autovacuum race after the test disabled its subscription, and his test-only configuration fix landed unchanged as 3e36e48d8e from #392, following Amit's analysis in #394.
- A separate race allowed the test to upgrade before two-phase replication was enabled, so Hayato added an explicit wait in #398, committed unchanged as 63c5df126a.
- Hayato implemented the strict-function and permission-assertion cleanup in #400, Vignesh approved it, and Amit prepared #402, which landed with formatting and catalog-version updates as 0bf62460bb #401.
- The thread ends with the feature and these fixes committed, while Thomas Munro's latest Windows failure was identified as a pre-existing delete-pending file race exposed by the tests; a proposed repair awaited review in another thread #404 #406 #407.