model-writtenrun 9618 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct - Dec 2018 · 11 entries
- John Naylor opened the thread with #1, implementing the previously suggested idea of avoiding disproportionately large FSM forks for tiny heaps, initially using a ten-page threshold and scanning heap pages before extension.
- Thomas Munro's test failure report #2 prompted larger pageinspect fixtures in #3, while the discussion kept visibility-map optimization outside this work in #5.
- Amit Kapila identified repeated scanning and incorrect handling of early pages in larger heaps in #6 and #7, leading to heap-size-aware creation checks and WAL-replay support in #8 and #9.
- Amit advocated avoiding repeated system calls and hiding fallback searching behind the FSM API in #10, leading to the known-nblocks optimization in #13.
- Amit's static-map proposal #12 changed the architecture: John replaced hio.c search bookkeeping with an in-memory map inside freespace.c in #15.
- John's performance results #16 favored a much smaller threshold, and #17 added a companion pg_upgrade optimization to avoid transferring unnecessary FSM forks.
- Tom Lane favored trying only the last page in #22, while Robert Haas warned about table bloat in #23; discussion of configurability in #27 and #28 favored a small fixed default.
- Review led to a four-page threshold, a two-state map with cached size, and transaction-abort cleanup in #38, followed by subtransaction cleanup and regression tests in #42.
- Unrelated cosmetic changes were dropped after #41, while #52 strengthened page-reuse coverage and #55 isolated vacuum-dependent tests from concurrent regression activity.
- John discovered that obsolete bootstrap behavior still created FSM files for system catalogs and posted the independent md.c cleanup in #57, with related discussion redirected in #58.
- Mithun's performance testing in #59 and callgrind analysis in #63 exposed the cost of trying every page, prompting John's alternative experimental deltas in #66.
Jan - Feb 2019 · 18 entries
- Mithun's results in #68 favored alternating pages as a compromise between speed and bloat, and John integrated that strategy into the complete series in #71.
- Amit simplified local-map initialization in #73, then added small-TOAST support in #81; John added TOAST tests, recovery verification, and matching pg_upgrade behavior in #82.
- Amit separated the ready bootstrap and core patches from the still-developing pg_upgrade component in #85, and John agreed that upgrade support could follow in #86.
- The pg_upgrade branch used relpages as a cheap filter with stat() verification in #93, then moved the decision into a dedicated new_cluster_needs_fsm() function in #96 following Amit's review #95.
- Amit announced the first landing in #97: d66e3664b8 took the bootstrap member of #88, and ac88d2962a took its core member, later resent unchanged in #106.
- The initial core landing was backed out amid buildfarm failures analyzed in #102, including vacuum-dependent tests and stale local-map state when concurrent extension supplied a page beyond the small-heap threshold; #106 reposted the faulty implementation for reproduction.
- Masahiko Sawada explained in #108 that alignment differences let the pageinspect fixture fit into four pages, preventing FSM creation; Amit increased its input while integrating the local-map race fix into #111.
- Amit supplied a concurrency reproducer and cleanup fix in #107, and John reported one failure before the fix but none in 300 runs afterward in #110.
- John proposed fillfactor-based replacement tests in #112, using Andrew Gierth's idea, but Amit requested simpler coverage first in #113, yielding the single-row and ctid-loop tests integrated through #114 and #116.
- John's alternative move of pageinspect FSM tests into BRIN tests in #123 was rejected in #125 because Amit wanted access-method tests kept separate.
- Amit reproduced the remaining cross-relation stale-map failure with debugger-controlled concurrency in #129, and John validated the rebased implementation #130 with another 300 pgbench runs in #131.
- The repaired implementation landed unchanged from #130 as b0eaa4c51b, retaining the four-page alternating-search design while fixing cleanup and simplifying tests.
- The second landing exposed alignment-dependent FSM contents in pageinspect, diagnosed in #133; Amit's inline EXPLAIN ANALYZE proposal #134 became 08ecdfe7e5, and #137 reported that affected buildfarm members passed.
- With the core stable, John reopened deferred page-reuse coverage and free-space-reporting documentation in #138, supplying a two-part follow-up in #140.
- Amit expanded and corrected the documentation review, and the final documentation attachment #143 landed unchanged as 29d108cdec, explaining zero reported free space for heaps without an FSM.
- The remaining tests dropped an unnecessary extra integer column in #149 and synchronized serial scheduling in #151; Alvaro Herrera's review #152 then drove block-size-independent inputs and page-count outputs in #158.
- Diagnostic attachments #153 and #159 documented failures in other tests under nonstandard block sizes; clean-build results and discussion in #156 and #157 kept these separate from the FSM patch.
- The final regression-test attachment #158 landed unchanged as 6f918159a9, restoring direct coverage of free-space reuse without depending on vacuum removing dead rows.
Mar 2019 · 5 entries
- John reported pg_upgrade testing across supported versions in #162, while Amit tested the final FSM regression patch on 1K and 32K blocks in #163.
- Amit's pg_upgrade review #164 requested compiler portability, documentation and performance checks, leading to John's revised upgrade patch #167.
- John's upgrade benchmarks #170 showed essentially unchanged transfer performance for five-page heaps and faster transfer for one-page heaps, while an apparent optimized-build failure disappeared after a clean rebuild in #174.
- Amit's final pg_upgrade revision #175 landed unchanged as 13e8643bfc, enabling upgrades from older versions to omit unnecessary FSM files for small heaps.
- John corrected two stale local-map comments in #179, which landed unchanged as 06c8a5090e; he reported no remaining patches, and Amit closed the commitfest entry in #181.