model-writtenrun 2503 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jan 2024 · 2 entries
- Tomas Vondra opened the thread with benchmarks showing severe scaling problems when queries lock many partitions or relations, proposing more lock-table partitions, a fast-path cache organized into 16-slot groups, and an adaptive memory pool in #1.
- Ronan Dunklau explained glibc allocation tuning in #2 and #6, and Tomas found that tuned glibc delivered nearly the memory pool's performance benefits, while remaining less adaptive and implementation-specific, in #7.
Jun - Sep 2024 · 12 entries
- After several months, Robert Haas reviewed the fast-path design, identified unnecessary initialization, requested explanations of the hash constants, and asked how far the cache could grow before performance suffered in #8; Robert and Tomas favored inexpensive hashing in #9 and #10.
- Tomas's further experiments found little benefit from increasing NUM_LOCK_PARTITIONS and emphasized the importance of allocation caching, leading him to concentrate on fast-path locking in #11 and #18.
- Large-machine testing showed no clear performance regression from larger fast-path arrays, but exposed their memory cost, so Tomas proposed allocating them separately from PGPROC and sizing them with max_locks_per_transaction in #12, an approach Robert endorsed in #13.
- Tomas submitted the dynamic-sizing rework with a separate benchmarking GUC in #14; Robert preferred avoiding another production setting in #15, and David Rowley supported adding one only if a demonstrated need arose in #20.
- The memory-cost discussion prompted Matthias van de Meent to propose smaller LOCK and PROCLOCK structures in #19, and Tomas invited an experimental implementation in #21.
- The polished series in #24 limited the intended production change to larger fast-path arrays and GUC-based sizing, leaving the extra GUC and incomplete fast-path statistics as benchmarking experiments.
- Jakub Wartak discussed practical monitoring and observed configuration values in #26, while Tomas reported regression-focused benchmarks and removed redundant assertions in #27.
- Windows CI exposed missing fast-path group initialization in EXEC_BACKEND processes, which Tomas fixed by recalculating the count in AttachSharedMemoryStructs in #28.
- Jakub reported memory measurements and raised cache-pressure and documentation concerns in #29; Tomas's additional tests found no meaningful regressions, and he chose to combine the two implementation stages to avoid an intermediate enlarged PGPROC layout in #31.
- Tomas landed c4d5cb71d2 from #28, combining both patches with only cosmetic edits as reported in #32; the resulting cache defaults to 64 slots and can grow to 16384 slots through max_locks_per_transaction.
- After the landing, Ants Aasma explored shared or hybrid fast-path caches for uneven backend demand in #33, but cache-line sharing and complexity remained concerns, and Tomas requested an experimental patch before pursuing that direction in #34.
- Tom Lane reported Coverity findings and supplied an inline correction for unsigned bounds checks in #35; Tomas fixed those checks and an accidental assignment inside an assertion in a7e5237f26, confirming the push in #39.
Nov 2024 · 1 entry
- Matthias returned with four independent lock-table memory-saving patches in #41, reporting approximately 34 percent savings through structure packing, ProcNumber substitution, and a smaller fully preallocated PROCLOCK table; the thread records no landing of that series.
Mar 2025 · 5 entries
- Andres Freund later objected that a variable-dependent macro looked like a constant in #42, prompting Tomas's function-like rename in #45 and its extension to equivalent sizing formulas in #47.
- The revised cleanup from #47 landed unchanged apart from rebasing as c878de1db4, with Tomas confirming the push and reporting a coincident buildfarm failure in #48.
- Andres traced the apparent regression to a buildfarm-client upgrade in #49 and extra temporary-install processing in #51, while Tom identified an LDAP module being built without LDAP support in #50.
- Tom supplied a patch to skip unbuilt modules in #54, while Andrew Dunstan independently corrected installation-directory detection in #56; Tom verified that Andrew's fix eliminated extra installs and restored runtime in #59.
- Tom's module-skipping experiment also skipped pg_bsd_indent, as reported in #57, and Andrew proposed explicitly building it in #60; the final message accepted the directory-path fix as sufficient for now, leaving the broader buildfarm changes unresolved in #61.