model-writtenrun 1952 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Hayato Kuroda reported that HASH_STATISTICS prevented compilation and HASH_DEBUG produced format warnings, attaching a small repair for both in #1.
- David Rowley identified the regressions in #2, while Tom Lane's historical investigation led him to recommend removing the rarely functional HASH_DEBUG output but consider retaining HASH_STATISTICS in #3; David favored repairing stable branches before deciding on removal from master in #5.
- Hayato split his proposal into HASH_DEBUG removal and the unchanged statistics compilation fix in #6, raising the possibility of extension users of hash_stats(); Tom doubted production dependencies and requested separate patches in #8.
- Michael Paquier argued that the facilities could help debug shared-memory statistics and supported repairs and backpatches in #7, while David proposed using elog and buildfarm coverage to prevent future breakage in #9.
- Hayato demonstrated that HASH_DEBUG's stderr output broke initdb tests and reported successful testing after an experimental elog conversion in #11, establishing that compilation repairs alone would not make the option suitable for buildfarm testing.
- David committed the unchanged statistics-fix component of #6 as ca38912512 and a corrected version of the original HASH_DEBUG repair from #1 as 296cba2760, confirming both in #12; the fixes were backpatched through PostgreSQL 17 and 14 respectively.
- With the immediate bugs fixed, Michael supported converting both options to elog and offered buildfarm coverage in #14, and David posted a new DEBUG4 logging patch in #15.
- Tom's review in #16 required table names, consistent single-line messages, and NULL-safe debugger calls, and questioned how statistics would be obtained for tables that never receive hash_destroy().
- David's replacement patch in #17 implemented the output improvements, removed global counters, introduced per-table expansion counts, and widened counters to uint64; Michael endorsed the global-counter removal and DEBUG4 choice in #18, while identifying broader removal of long types as separate cleanup.
- David considered enabling HASH_DEBUG in assertion builds in #20, but Tom argued that its static initialization information did not justify keeping it in #23, and David and Michael moved toward removal in #24 and #25.
- David posted separate statistics-improvement and HASH_DEBUG-removal patches in #26, deliberately retaining historical introductory comments; Michael approved in #27, while Tom requested accurate replacement comments and otherwise approved in #28.
- The statistics component of #26 landed unchanged as 05fcb9667c, and its removal component landed with Tom's comment correction as a98ccf727e, retaining author credit for Hayato's earlier removal work; David confirmed the pushes in #29.
- The thread ended with all four changes landed and Michael enabling HASH_STATISTICS on the master-only buildfarm animal batta in #30; HASH_DEBUG was removed from master, and the broader long-type cleanup remained outside the submitted work.