model-writtenrun 4781 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Aug 2022 - Jan 2023 ยท 26 entries
- Peter Geoghegan opened the thread with four patches to spread freezing work across VACUUM runs: page-level freezing, immutable visibility-map snapshots, table-size-selected eager freezing, and avoidance of unnecessary MultiXact allocation, aiming to prevent disruptive catch-up antiwraparound vacuums #1.
- Jeremy Schneider warned that retaining MultiXacts could increase SLRU pressure, and Peter identified a related weakness in deferring cheap MultiXact cleanup under page-level freezing, establishing the need to preserve proactive MultiXact processing #2 #4.
- Jeff Davis questioned the per-table size threshold and proposed controlling system-wide freezing debt or processing a limited number of pages; Peter retained table-level decisions because relfrozenxid advancement requires complete coverage of relevant pages, while treating broader scheduling as future work #5 #6 #7.
- Peter extended the series to unify aggressive and antiwraparound behavior and then added snapshot-based dead_items sizing; John Naylor supported the allocation improvement but challenged the resource-management claims surrounding VM snapshots #15 #16 #17.
- After further discussion with Jeff about manual VACUUM, workload growth, and freezing costs, Peter replaced the unification approach with removal of discrete aggressive mode, using separate cleanup-lock cutoffs and triggering page freezing for MultiXacts to avoid delayed cleanup #21 #27 #29.
- Justin Pryzby found an alignment failure in snapshot reads, which Peter fixed with PGAlignedBlock while rebasing over freeze-plan WAL deduplication #30 #31.
- Andres Freund's detailed review challenged cutoff plumbing, standby-conflict horizons, snapshot memory use, and the risk of size-threshold freezing spikes; Peter first cleaned up tracker naming and assertions, then introduced VacuumCutoffs, folded MultiXact handling into page-level freezing, and tightened conflict horizons #32 #33 #34.
- The next major revision gave VM snapshots bounded memory with temporary-file spilling and an iterator with explicit prefetching, added freezing when pruning emits an FPI, and staggered eager freezing and eager scanning to soften the transition for growing tables #37.
- Jeff Davis and John Naylor continued questioning the size heuristic and confusing skipping terminology, while Matthias van de Meent highlighted a remaining catch-up spike; Peter removed the second size threshold entirely, adopted scanning terminology, and added short cleanup-lock retries instead of immediately abandoning useful relfrozenxid advancement #38 #40 #43 #47 #51.
- Jeff approved the cutoff refactor and tested freezing with concurrent VACUUM operations and verify_heapam; the first patch of the revised series landed with light comment and assertion edits as 4ce3afb82e #52 #54 #59.
- Peter resent the four remaining patches and added unconditional eager freezing for temporary and unlogged tables, arguing that those tables avoid the dominant WAL cost #59.
- Jeff's questions about freeze_required and control flow led Peter to merge freeze-path selection with execution and simplify MultiXact tracker maintenance, preparing page-level freezing for a separate landing #57 #60.
- Hayato Kuroda diagnosed a VACUUM FREEZE assertion failure introduced by the cutoff refactor; Peter explained that invalidating a MultiXact does not imply it predates OldestMxact and removed the assertion in 63c844a0a5 #61 #62.
- The page-level freezing component of #60 landed as 1de58df4fe, with additional MultiXact validation fixes and comment cleanup; Peter then resent the three remaining strategy patches #64.
- Jeff found the description of nominal freezing confusing and supplied clearer wording for pages with no freeze plans; Peter posted the comment follow-up, Jeff approved it, and it landed with an extra obsolete-comment deletion as b37a083239 #68 #70 #71 #72.
- The remaining series changed VM updates to avoid trusting stale visibility information returned by snapshots, simplifying the iterator interface and connecting the work to visibility-map hardening discussed separately #72.
- Matthias reviewed configuration limits, snapshot resource requirements, cleanup-lock delays, and lost documentation details; after an intervening rebase, Peter changed the threshold to megabytes and abandoned the broad documentation rewrite in favor of incremental edits #73 #74 #77 #80.
- Dilip Kumar reviewed the remaining series and questioned why eager scanning did not always imply eager freezing; Peter explained the independent cost decisions, and Dilip accepted that distinction while identifying further snapshot cleanup opportunities #78 #79 #85 #86.
- Peter posted the final pre-commit revision with expanded eager-freezing documentation, Matthias approved its first patch, and that component landed with light configuration-bound and documentation edits as 4d41799261, leaving VM scanning and aggressive-mode removal uncommitted #88 #89.
- Andres tested the committed eager-freezing policy with continuously inserted and expired rows and reported much higher WAL volume, longer autovacuums, and accumulating bloat; he supplied a reproducer and argued that relation size could not distinguish transient data from append-only data #90 #96.
- Andres requested a revert, Robert Haas endorsed the workload-regression concerns, and John reiterated his unresolved objection to the size heuristic; Peter decided to reverse the eager-freezing landing and withdraw the outstanding work #93 #102 #105 #106.
- The exact reversal landed as 6c6b497266; Peter confirmed that all remaining patches in this series were withdrawn, along with related work in other threads, while permitting others to take over #108.
- Discussion then distinguished the retained basic page-level freezing from the reverted eager policy: Robert and Andres considered freezing a page when some tuples already require it reasonable, while questioning the precise FPI-based opportunistic trigger #110 #113.
- Matthias proposed combining pruning and freezing WAL records, and Andres also advocated combining visibility work to reduce WAL and repeated visibility checks; these remained design suggestions without another attached implementation or landing in this thread #117 #120 #123.
- Andres explored earlier age-triggered vacuums, all-frozen-page statistics, append-heavy workload detection, and opportunistic freezing of already-dirty pages using LSN recency; Robert challenged the stability of a last-vacuum-relative threshold, leading Andres to suggest the last checkpoint as a better reference #128 #131 #133 #138 #139.
- At the last message, the cutoff refactor, assertion repair, basic page-level freezing, and comment clarification remained landed, eager freezing had been reverted, and VM snapshots plus aggressive-mode removal remained withdrawn; Peter limited his intended involvement to leaving the basic page-level implementation in sound standalone form, with opportunistic-freezing policy still unresolved #140.