model-writtenrun 2429 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart proposed moving whole database directories and replacing their catalogs instead of transferring individual relation files, reporting a reduction from roughly ten minutes to five and a half minutes on a large test cluster; his proof of concept also avoided redundant synchronization and reused sequence files #1.
- Greg Sabino Mullane questioned unexpected directories and invalid relation identifiers, and Nathan explained that non-relation files such as PG_VERSION and pg_filenode.map must come from the new cluster; Bruce Momjian welcomed the optimization while highlighting rollback difficulty #2 #3 #4.
- After a December rebase, Nathan returned in February with a substantially reorganized four-patch series, dedicated swap routines, documentation, durable directory helpers, and an unfinished rollback-script implementation #6 #7.
- Robert Haas supported explicit control over dumping sequence data, and Nathan explained that swap mode would reuse sequence files while other modes retained their existing behavior; restricting swap upgrades to PostgreSQL 10 or newer avoided earlier sequence and visibility-map format changes #8 #9 #10 #11.
- Nathan proposed abandoning generated rollback scripts because of their complexity and the rarity of failures during transfer, while Robert and Greg added concerns about misuse during retries; the next series removed the scripts and intermediate durability machinery, disabled the old cluster before transfer, and documented recovery from backup #13 #14 #15 #16.
- Nathan's self-review clarified selective synchronization and syncfs behavior, strengthened error handling, improved comments, and moved discarded files under the old tablespace directories so the existing deletion script would remove them #18.
- Robert requested normal CI coverage instead of relying on a specially configured buildfarm animal, prompting a swap smoke test; Robert, Tom Lane, and Andres Freund then argued for inexpensive, targeted coverage of all transfer modes rather than repeatedly running the large upgrade suite #19 #20 #21 #22 #23.
- Nathan split out a standalone transfer-mode test, then added a rewritten relation at Andres's request and broadened expected platform-error matching after CI feedback; this test was folded into the full series, replacing the separate swap test #25 #26 #29 #30.
- Andres approved the test, but tablespace coverage remained a concern: same-version upgrades conflicted with version-specific tablespace directories, and Nathan explained that supporting in-place tablespaces required further pg_upgrade work #32 #33 #34 #35.
- Nathan added cross-version tests with ordinary non-default tablespaces and integrated them into the full series, reporting successful local upgrades from PostgreSQL 9.6, 13, and 17 while skipping swap mode for unsupported old versions #36 #37.
- Nathan committed the test component from #37 as af0d4901c1, changing only its filename and Meson registration, and deliberately let it run on the buildfarm before landing the feature #38.
- With no immediate buildfarm problems, Nathan posted the three remaining patches with expanded comments and commit messages #39.
- The final initdb and pg_dump attachments landed unchanged as cf131fa942 and 9c49f0e8cd, while the swap attachment landed with directory-variable naming and comment edits as 626d7236b6; Nathan announced completion in #40.
- Nathan acknowledged that the initdb component had received little specific review and left improved old-to-new tablespace mapping and in-place tablespace support for future work, primarily to enable same-version tablespace testing #40.
- After landing, Alexander Lakhin reported intermittent Windows failures whose diagnostic upgrade logs were deleted by test cleanup, making their causes difficult to establish #41.
- Nathan explained that unsupported transfer modes legitimately return failure and pointed to related investigations, while Alexander clarified that preserving unexpected-failure logs remained unresolved; Nathan also identified reuse of test directory names across modes as a potential problem #42 #43 #44.
- At the thread's last message, all four changes had landed, but Alexander reported seven transfer-mode test failures across Windows and EXEC_BACKEND animals and renewed the request to preserve upgrade logs; no corrective patch or resolution appears in this thread #45.