model-writtenrun 3266 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart proposed using CREATE DATABASE STRATEGY = FILE_COPY during pg_upgrade after reducing schema-restoration time for roughly 3,000 empty databases from about 100 seconds to 30 seconds #1.
- Ranier Vilela suggested extending FILE_COPY to ordinary dumps, but Nathan questioned that broader benefit and Matthias van de Meent explained that its two checkpoints could be expensive with large shared_buffers, keeping the proposal focused on binary upgrades #2 #3 #4.
- Matthias proposed avoiding repeated checkpoints during binary upgrades, and Dilip Kumar supported the reasoning for omitting the second checkpoint while accepting the concern about scanning large buffer caches #7 #8 #9 #10.
- Nathan's benchmarks confirmed a regression with 100GB shared_buffers and 10,000 empty databases: FILE_COPY took 5 minutes 8 seconds versus WAL_LOG's 2 minutes 3 seconds; he also established that the copied template was template0 #11.
- Matthias supplied a revision retaining FILE_COPY while suppressing both per-database checkpoints, and Nathan measured 1 minute 44 seconds for the large-buffer test, attributing remaining overhead to pg_largeobject truncation #12 #13.
- Nathan then identified that set_frozenxids() modifies template0, so his final patch added one explicit checkpoint before restoring database schemas; Matthias approved the correction #14 #15 #16.
- Robert Haas questioned crash behavior, and Nathan, Matthias, and Michael Paquier concluded that interrupted upgrades already require starting over with a fresh target cluster, so checkpoint suppression did not introduce a new supported-recovery requirement #17 #18 #19 #20.
- Nathan committed the final patch with only comment and commit-message refinements, crediting Matthias as co-author, and closed the thread by announcing the commit; no further patch work remained pending in the discussion #15 64f34eb2e2 #21.