model-writtenrun 9559 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported that random_zipfian with a below-one parameter and a billion-value range spent about 44 seconds computing harmonic numbers, consuming the benchmark interval before useful work could proceed #1.
- Fabien COELHO explained the distinction between expensive setup below one and rejection-sampling costs above one, suggested exponential sampling where appropriate, and posted documentation and code-comment improvements #2.
- Tom Lane proposed dropping below-one support because its caching and unstable costs were inappropriate for a benchmarking tool; David Fetter defended the realism of Zipfian distributions, while Tomas Vondra and Peter Geoghegan questioned whether exponential sampling could suffice #3 #4 #5 #7.
- The discussion also exposed differing goals for benchmarking tools: Fabien defended pgbench's flexible scripting, while Peter emphasized structured workloads and richer analysis offered by dedicated benchmark suites #8 #10.
- Ants Aasma identified an int loop counter operating on an int64 range, which Fabien fixed alongside clearer comments; Georgios Kokolatos then requested a documentation grammar correction that Fabien incorporated #11 #14 #15 #16.
- On reviewing the documentation approach, Tom objected that cache eviction and its unexplained end-of-run statistics still hid performance hazards, renewing his request to remove below-one support #18.
- Fabien offered an alternative that replaced LRU eviction with an immediate cache-overflow error and removed overflow statistics, then corrected an unused-variable warning; Tomas objected that this could make benchmarks fail unexpectedly during execution #20 #21 #22.
- Fabien argued that dynamically growing the cache could produce unbounded storage and increasingly expensive searches, and resent an older documentation patch while discussing possible precomputation before benchmark timing #24 #25.
- Concluding that a complete solution was not feasible for PostgreSQL 12, Fabien replaced the cache proposal with removal of below-one support and supplied measurements showing that parameters extremely close to one also performed poorly #26.
- Tom supported constraining the remaining algorithm, and Fabien revised the removal patch to require a parameter of at least 1.001; support below one through a future preparation phase remained only a possible future design #27 #28.
- Tom committed the removal from #28 as 26a76cb640, with rewritten documentation, an additional small-range fast path, and assertion and cleanup edits, then announced the landing #29.
- Alvaro Herrera observed that removing the thread-local cache also made thread pointers unnecessary in expression evaluation, prompting Fabien's separate cleanup patch #30 #32.
- Tom extended that cleanup to additional unused arguments and progress-report naming and comments, committing it as d8c0bd9fef; his final reply confirms the landing, leaving both the parameter restriction and follow-up cleanup committed while the cache-retention alternatives were superseded #33.