model-writtenrun 6904 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund proposed reducing the default WAL block size from 8kB to 4kB, reporting lower physical write volume and generally better transactional throughput, with only a small increase in WAL header overhead; he preferred smaller pages over retaining 8kB pages and writing them in 4kB increments #1.
- Tom Lane questioned the doubled proportional header overhead, while Andres considered it small enough to accept and suggested that simplifying the distinction between long and short headers could instead improve LSN conversion costs #5 #6.
- Matthias van de Meent supported 4kB pages while identifying possible buffer-management and record-copying costs, then proposed compactly encoding size checks and splitting the system identifier across pages; Andres initially questioned the single-page case and later acknowledged that a partial identifier still provides a useful check #7 #8 #9 #17.
- Thomas Munro proposed moving identity metadata into checkpoint and redo-point records, with special records at segment boundaries, but Andres warned that inserting those extra records would burden a heavily contended insertion lock #10 #11.
- Robert Haas supported exploring metadata relocation into XLOG_CHECKPOINT_REDO, and Thomas explained that uniform page headers would permit cheaper constant-divisor arithmetic; subsequent discussion retained concern about detecting mixed WAL archives, without settling or implementing a header redesign #13 #15 #16 #18 #19.
- Ants Aasma raised a related timeline-validation problem, which Robert distinguished from reading incorrectly sourced WAL files while suggesting that existing page-address and timeline fields might also be compacted #20 #21.
- Robert Haas's related checkpoint work, based partly on earlier work by Dilip Kumar, landed as afd12774ae from #544753 in thread #48005, adding an explicit redo-point record and recovery validation; this thread discussed potential uses of that work but supplied neither its implementation nor the proposed header-metadata relocation #10 #13.
- After a gap of more than two years, Andy Pogrebnoi revived the default-size proposal with additional write-volume measurements and submitted a patch changing the build defaults and documentation, leaving header redesign outside its scope #22 #23.
- Andres supported proceeding but showed that automatic WAL-buffer sizing incorrectly assumed equal data and WAL block sizes, requested a byte-based calculation and an upgrade test, and Michael Paquier also supported the default change #24 #25.
- Andy submitted a revised two-patch series that corrected more documentation and adjusted XLOGChooseNumBuffers() for differing block sizes, reporting that pg_upgrade from 8kB to 4kB WAL blocks succeeded #26.
- Windows test failures then exposed inconsistent wal_writer_flush_after initialization; Andres reproduced incomplete rebuilds with ccache and precompiled headers and traced the failure to missing dependency tracking #27 #28.
- Although John Naylor observed CI passing again, Andres reported that the upstream caching issue remained unresolved and proposed adding GCC's supported -fpch-deps flag after experiments showed it avoided the problem #29 #30.
- The build workaround proposed here landed as cf9d76d78d from the matching patchset #1148120 in thread #248737, so its implementation belongs to that thread rather than the attached WAL-size series #30.
- At the thread's last message, Andy reported passing CI after the build fix and asked what remained necessary to advance the WAL-size proposal; the supplied thread shows no landing of either the 4kB-default patch or its WAL-buffer sizing companion #31.