model-writtenrun 6872 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun - Dec 2025 · 21 entries
- Melanie Plageman proposed folding visibility-map updates into existing multi-insert and prune WAL records in #1, reporting substantially less vacuum WAL and half as many COPY FREEZE records, with on-access visibility as the next goal.
- After rebasing and dropping preliminary cleanup in #2, Melanie added executor-to-scan read-only information and on-access VM setting in #3, avoiding updates to relations the query would modify.
- Andrey Borodin caught the forgotten xl_heap_visible struct removal, fixed in #4, and proposed searchable corruption error codes in #7.
- The redesign in #8 used GlobalVisState, inlined transaction-ID comparisons, and split pruning helpers to limit CPU overhead; setting prune hints on insert initially exposed standby decoding conflicts, addressed through test feedback settings in #9.
- Kirill Reshke tested COPY FREEZE and investigated redundant VM pins in #10 and #16, while Andres Freund reviewed locking and WAL representation in #19.
- The extracted VM assertion/logging patch from #18 landed unchanged as e3d5ddb7ca, and the redundant VM pin and assertions from #21 landed as 3399c26554.
- Andres identified the unused prune-record reason field, and Robert Haas advised against backpatching its removal in #24; the removal and corruption SQLSTATE patches from #23 landed essentially unchanged as 4b5f206de2 and 8ec97e78a7.
- Robert’s review in #29, #33, and #35 led to locking VM buffers before critical sections, separate prune flag constants, and clearer heap/VM replay invariants across #30 through #34.
- Melanie tried logging PD_ALL_VISIBLE with heap changes before removing the heap from the separate VM WAL chain in #36; its standalone opcode-comment correction landed unchanged as ae8ea7278c.
- After Robert found the intermediate design difficult to follow in #39, #40 returned to direct record elimination and squashed preparatory steps; on-access freezing was left out because preparing freeze plans added noticeable CPU overhead.
- Reordering the series in #41 made COPY FREEZE and vacuum phase III independently landable as d96f87332b and add323da40, with final VM debug-interface, replay-LSN, and assertion adjustments following Andres’s review in #42.
- Kirill and Michael Paquier caught the missing WAL format bump in #43 and #44, leading directly to 4a8fb58671 without an attached patch.
- The freeze-decision helper, transaction-ID inlining, and LVRelState-independent visibility helper from #41 landed as c8dd6542ba, 43b05b38ea, and 3e4705484e, with only extraction-related naming and comment edits to the first.
- The remainder in #46 introduced PruneFreezeParams; Kirill’s review in #47 prompted further cleanup, while #49 replaced modifies_rel wrappers with SO_HINT_REL_READ_ONLY and flags in scan APIs.
- The parameter struct, independent all-frozen tracking, and earlier visibility-state updates from #51 landed as 1937ed7062, 351d7e2441, and 65ec565b19, with only initializer ordering and comments adjusted; #52 resent the remainder.
- Dagfinn Ilmari Mannsåker’s initializer-formatting request in #53 produced 1e14edcea5, and Chao Li’s inline cutoff assertion and typo fix in #56 produced cd38b7e773.
- Chao and Andres reviewed pruning-helper extraction in #57 and #59, and the patch from #52 landed with comment corrections as e135e04457.
- The December series in #61 separated phase-I VM integration and executor plumbing for review, while #64 fixed an assertion-triggering failure to dirty a heap buffer before VM-only WAL registration and added regression coverage.
- The assertion simplification and heap/VM integrity comment from #64 landed unchanged as bd298f54a0 and eebec3ca4b; Peter Eisentraut then supplied the const-correctness delta in #67, committed with documentation as 4877391ce8.
- Melanie eliminated cached VM state in #69 and replaced broad procarray renaming with a visibility wrapper in #72; Kirill supplied an independent empty-page injection-point test in #78, which is not among the supplied landed commits.
- Xuneng Zhou found stale VM bits after corruption repair in #82, Chao refined helper contracts in #85, and Andrey found missing ordered/index-only scan hints in #92, producing the revised series in #93.
Jan - Apr 2026 · 17 entries
- The three vacuum refactors from #93 landed as 21796c267d, 648a7e28d7, and 19af794b66: the first incorporated the regression test developed in thread #52870 and gained a pageinspect dependency, the second lost a redundant assertion, and the third adopted Andres’s pointer-based VM-bit update.
- Alexander Lakhin reproduced autovacuum-related test flakiness in #100; Kirill’s TAP rewrite in #107 was replaced by the simpler temporary-table solution in #110, which landed unchanged as 4a99ef1a0d.
- Andres’s counter-naming request in #97 and agreement in #112 led directly to 5aea60839b, while the visibility-check and ANALYZE OldestXmin simplifications from #99 landed unchanged as 3efe58febc and 284925508a.
- Andres’s reviews in #112 and #113 drove the major redesign in #114: unconditional VM corruption checking, cached scan VM pins, a pruning fast path, and continuously maintained live/freeze horizons replaced earlier conditional bookkeeping.
- The PruneState context cleanup and PageGetPruneXid helper from #114 landed unchanged as 59663e4207 and 68c2dcb913, while 34cb4254bd extended the set_ renaming to result fields as Chao requested in #116.
- The remainder in #121 added UPDATE new-page prune hints and reported worst-case benchmark costs; #122 simplified conflict-horizon calculation after the separate freezing prerequisite was handled.
- The VM-buffer scan cache, cached heap pages, and executor-field initialization from #122 landed unchanged as 99bf1f8aa6, 8d2c1df4f4, and a3511443e5, leaving the smaller series in #123.
- Kirill’s DISABLE_PAGE_SKIPPING concern in #125 added an opt-in fast path in #126, and Andres’s review in #127 led to explicit VMCorruptionType handling and planner-side modification tracking in #128.
- The corruption-repair and pruning-fast-path patches from #129 landed as 4f7ecca84d and 01b7e4a46d, with light naming/comment edits to the former and removal of the stored fast-path flag in the latter.
- The GlobalVisState conversion, continuous newest-live-XID tracking, phase-I combined WAL, and final old-record removal from #131 landed as dd5716f3c7, 9ba3ec076a, 1252a4ee28, and a881cc9c7e, with only comments and the final WAL magic bump differing.
- An OID-based attempt to track every modified relation in #131 raised partition ancestry and planning-cost problems; Andres argued for RT indexes in #133, and the remainder in #134 adopted them again.
- Tomas Vondra refined scan-flag APIs in #135 and #138, and David Rowley proposed separate result-relation and row-mark bitmapsets plus removal of the old list in #141; #142 implemented that design and #144 polished it.
- The planner bitmapsets and old-list removal from #144 landed as 0f4c170cf3 and 39dcd10a2c, while the scan flags and read-only propagation landed as dcd8cc1c85 and 50eb5faea2, with only minor initialization and comment edits.
- On-access VM setting and insert prune hints from #144 landed as b46e1e54d0 and 378a216187; the former gained explicit attempt_set_vm guards, and #146 announced completion of the main series while posting typed-loop cleanup.
- Alexey Makhmutov identified stale zero-free-space FSM entries after promotion in #152 and #154; Melanie’s replay fix in #155 landed unchanged as b4c1b2be30.
- Alexander’s temporary-buffer exhaustion report in #149 led to Andres’s conservative pin-limit proposal in #151; the patch in #162 landed with comment edits as da6874635d.
- Alexander reproduced plan instability caused by newly visible pages in #158 and #164; discussion produced the btree_gist temporary-table fix 62407d26b7 and plancache autovacuum/ANALYZE fix 85ae8ab053 without attached patches.
Sep 2026 · 6 entries
- After a several-month gap, Melanie reported an LLM-assisted discovery of VM pinning under the heap cleanup lock in #169; Chao checked the contract in #171, and the patch landed unchanged as 512d3e8919.
- The follow-up audit found COPY FREEZE no longer updated the FSM for full-page-image cases; the correction in #172 landed unchanged as f7700080dc.
- Melanie also found frozen multi-inserts incorrectly set prune hints in #173; Chao approved and offered scope cleanup in #175, but Melanie declined that extra churn in #176 and committed the original fix as 47f0fa62c0.
- The four-patch audit follow-up in #178 added VM-pin assertions, lighter replay locking, a corrected no-extra-FPI heuristic, and a retained retry hint; Andrey’s standby testing in #179 showed freeze-only records also needed lighter locks, incorporated in #180.
- The first three fixes from #180 landed as d8516db39d, 07c73f4506, and 4a2f5533f3, with only assertion comments and heuristic-test details adjusted; the replay-lock fix acknowledged the earlier report and patch in thread #253050, but its latest matching attachment was posted here.
- At the thread’s end, #181 retained the retry-hint patch after correcting its dead-item case and revived typed-loop cleanup; Chao approved the cleanup but requested more time for the retry logic in #182, leaving those follow-ups pending without a revert of the landed feature.