model-writtenrun 7962 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Katsuragi Yuta proposed a pg_stat_statements_ctl view exposing the number of deallocation events and the latest event's timestamp, preserving these statistics across shutdown and clearing them on a full statistics reset #1.
- Julien Rouhaud suggested counting evicted entries, but discussion questioned whether that would indicate the required pg_stat_statements.max; Julien and legrand legrand also explored eviction logging #2 #3 #4 #5.
- Legrand legrand proposed a history table covering evictions and resets, but Katsuragi preferred a summary view with optional logging because a history table would require its own size limits and eviction policy #8 #10 #11.
- Seino Yuki tested the original patch and suggested cleanup, while Fujii Masao requested a clearer interface name, corrected SQL types and grants, and questioned the last-deallocation timestamp because periodic counter monitoring or logging could supply that history #12 #13 #15.
- Seino took over revisions, renamed the interface to pg_stat_statements_info, removed the timestamp, added logging and regression coverage, and then corrected a documentation return-type typo #16 #17.
- Fujii requested consolidation of shared-memory state, a dump-format identifier update, and removal of redundant code and function documentation; Seino implemented these changes and merged a separate reset-timestamp feature into the same patch #18 #19.
- Fujii agreed that both features should share infrastructure but wanted them reviewed separately, so he extracted the deallocation counter, refactored it into pgssGlobalStats, and removed logging from his revised attachment #20.
- Seino tested the revised view, documentation and regression tests successfully; after Fujii warned that frequent eviction logging could overwhelm users, they agreed to leave logging out unless users requested it #21 #22 #23 #24.
- Fujii committed #20 as 9fbc3f318d with small documentation edits and an updated dump-format identifier, announcing completion in the thread's final message #25; the deallocation counter landed, while reset-timestamp support remained separate future work and eviction logging was deferred.