model-writtenrun 7676 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct - Dec 2019 · 3 entries
- Kirk Jamison proposed auxiliary shared-memory hash tables and linked lists of relation buffers in #1, aiming to eliminate expensive full buffer-pool scans during truncation and dramatically shorten failover after bulk operations.
- Tomas Vondra requested private-helper cleanup and buffer-churn benchmarks in #3, while Robert Haas warned in #4 that extra hash operations and locking could slow common workloads.
- After Tomas measured roughly a six-percent regression in #6, Kirk refined the list implementation with block-level hash partitioning in #7 and combined spinlock/LWLock synchronization in #8.
Feb 2020 · 1 entry
- Kirk fixed an allocation-loop problem in #9, extended the list approach to multi-relation buffer dropping in #11, and refreshed the proposal after another gap in #13.
Jun - Sep 2020 · 8 entries
- Konstantin Knizhnik reported successful testing in #16, but Tom Lane identified excessive shared-memory allocation, problematic locking, and inadequate documentation in #18, and Tomas reproduced further workload regressions in #23.
- Andres Freund proposed probing the existing buffer hash for small relations in #19; Tom and Amit Kapila stressed that reliable relation lengths were essential because leaving dirty buffers behind could break later writes in #20, #26, and #27.
- Robert and Tom also explored deferred or batched invalidation in #31, #32, and #35, but Amit's recovery-only proposal in #38 provided a narrower route using cached relation sizes.
- Kirk replaced the auxiliary-list implementation with recovery-only BufMapping lookups in #39, removing overhead from normal buffer allocation.
- Kyotaro Horiguchi, Takayuki Tsunakawa, and Amit found missing fallbacks, incorrect indices, unsafe lookup-result handling, and redundant scans in #40, #47, #48, #53, and #54, driving the corrections through #61.
- Discussion of unreliable lseek results and recovery cache maintenance led Kyotaro to propose an smgrextend assertion in #59; Kirk incorporated it and then separated it into an auxiliary patch in #69.
- Takayuki favored a dedicated cached-size getter in #75 and #82, while Amit preferred extending smgrnblocks in #78; Kirk initially implemented the getter in #83.
- Kyotaro argued that all forks must be considered before choosing a lookup path or one full scan in #84 and #92, leading to the aggregate decision in #98 and subsequent per-fork bounds fixes in #101.
Oct - Nov 2020 · 8 entries
- Amit's API review in #102 led Kirk to split out a cached-output parameter for smgrnblocks in #106, followed by corrections to flag initialization, optional arguments, and scan selection through #122.
- Takayuki identified a benchmark mismatch in #118: the existing patch accelerated VACUUM tail truncation, whereas SQL TRUNCATE used DropRelFileNodesAllBuffers; Kirk added that second optimization in #141.
- Experimental non-recovery testing exposed deliberately invalidated relation-size caches in #121, so the bypasses attached in #122 served only as diagnostic aids.
- Thomas Munro challenged the cached-size safety argument in #127 and reproduced shrinking SEEK_END results on NFS in #130; Kyotaro explained why recovery's retained size still bounds the pages that could enter buffers in #132 and #134.
- Amit and Kyotaro reviewed helper extraction and buffer lookup locking in #144, #145, and #148, producing the shared FindAndDropRelFileNodeBuffers helper in #155.
- Thomas explored broader online support and renamed dropped-file markers in #153 and #158, but Amit identified the partial-truncation limitation in #160, leaving recovery-only optimization as the implemented scope.
- Takayuki reported large improvements when timing the actual buffer-dropping routines in #164, but Andres found that the multi-relation patch needed a threshold across all relations and an explicit recovery restriction in #167.
- Kirk implemented the aggregate multi-relation decision in #170, then adopted Kyotaro's simpler arrays and per-fork helper interface from #172 and #173 in #178.
Dec 2020 - Jan 2021 · 9 entries
- Amit rejected relying solely on recovery-state assumptions in #184; testing and discussion identified uncached ancillary forks, including unused TOAST storage, in #194 and #195, and #204 required cached sizes for both optimization paths.
- Takayuki and Amit refined the explanation of uncached forks in #205, #208, and #210, yielding #211; Haiying Tang then confirmed both performance benefits and fallback behavior in #213.
- A final locking review established that a buffer can be reused after releasing its mapping lock, so the buffer-header lock and tag recheck remained after discussion in #214, #216, and #219.
- Amit consolidated and documented the single-relation patch in #225, then found incorrect temporary-relation filtering and unnecessary existence checks in the multi-relation path in #226.
- Kirk incorporated those fixes in #236, restored the dedicated smgrnblocks_cached API, and adopted the nested-loop exit proposed by Kyotaro and Zhihong Yu in #231 and #232.
- Amit cleaned the series in #241 and moved the assertion patch last because its inclusion remained uncertain; he had characterized it as mainly useful for testing in #228.
- After Amit requested consistent threshold experiments in #250, Kirk's measurements selected NBuffers/32 in #253, and Haiying independently reproduced the crossover and large multi-table improvements in #255.
- Amit accepted the measurements and refined the commit message in #256, then landed the single-relation member of #253 as d6ad34f341, announcing it in #259.
- Amit landed the multi-relation member of #253 as bea449c635, announcing it in #261; Kirk subsequently reported coverage of the new routines and helpers in #262.
Mar 2021 · 3 entries
- Thomas noticed that summing relation and fork sizes could overflow BlockNumber in #263; Amit outlined alternatives in #264, and Takayuki supplied a uint64 accumulator fix in #267.
- Kyotaro reviewed the overflow fix and requested a matching threshold cast in #268, which Takayuki added in #269; Amit committed it unchanged as 519e4c9ee2 and confirmed the push in #271.
- By the closing message #271, both recovery optimizations and the overflow correction had landed; the auxiliary assertion and benchmark instrumentation from #253 remained outside those commits, while broader non-recovery optimization was separate work mentioned in #263.