model-writtenrun 3360 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tristan Partin proposed using pgstat_kind_infos to locate and read fixed shared statistics, replacing six explicit reads with a metadata-driven loop and crediting Andres Freund with the original idea #1.
- Michael Paquier supported removing duplicated ordering between PgStat_Kind and the reader, deferred the improvement to PostgreSQL 18, and recommended tracking it in the next commitfest, which Tristan did #2 #4 #5.
- Andres welcomed the direction as groundwork for extension-defined statistics and asked whether the file-format version needed changing; Tristan and Michael checked that the existing storage order matched the statistics IDs, so no version bump was needed #6 #7 #8.
- Michael committed the sole patchset #1 as 9004abf620, with light edits to the loop, metadata accessor, assertion, comments, and field placement, and described the code-consistency changes afterward #9.
- Michael then proposed extending the pattern to statistics writes and replacing embedded fixed-statistics structures with allocated areas sized from kind metadata, leaving that broader work outside the committed patch #9.
- The original change was landed by the thread's end, and Michael moved further discussion of his prospective implementation to the separate pluggable-statistics thread #10.