model-writtenrun 3117 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed extensible cumulative statistics in #1, motivated by making pg_stat_statements more scalable and allowing extensions to reuse core snapshots, shared storage, and persistence; the initial implementation dynamically allocated kind IDs and demonstrated the APIs through injection_points.
- Michael replaced dynamic IDs with reserved IDs and startup-only registration in #2, simplifying persistence through the existing statistics file; Bertrand Drouvot supported that approach and reviewed the initial cleanup and registration code in #4.
- Kyotaro Horiguchi proposed preserving a name-to-ID mapping instead of maintaining a central registry in #7, but Michael explained in #8 that his mapping prototype complicated restoration and serialization, favoring stable IDs.
- The file-marker cleanup from #2 landed with clearer macro names as 9fd0252579, and Michael's expanded series in #9 added fixed-numbered custom statistics by generalizing shared-memory and snapshot storage into pointer arrays.
- Andrei Lepikhov requested support for loading extensions without startup preloading in #10; Michael retained the startup requirement in #11 so the startup process and checkpointer would know how to restore and persist every registered kind.
- Bertrand reviewed the fixed-statistics refactor in #12, while Andres Freund objected in #13 that pointer indirection would penalize built-in counters and reduce type safety; Michael agreed in #18 to preserve embedded built-in structures and separate custom storage.
- Andres opposed extension-controlled persistence files in #14 because they would complicate future recovery improvements, and Michael kept additional persistence callbacks outside this series in #16.
- Dmitry Dolgov questioned whether wiki-managed IDs would scale to many extension statistics in #20, while accepting their initial simplicity; Michael defended stable IDs and the single-file design in #21.
- The reworked series in #22 separated built-in and custom storage and split out three prerequisites: generic fixed-statistics writing, shared-memory initialization callbacks, and an explicit fixed-statistics file-entry type.
- After Bertrand's review and approval in #23 and #25, the generic writer patch from #22 landed unchanged as b68b29bc8f; Bertrand then proposed separate field renaming in #28, which Michael continued to debate in #30.
- Michael resent the remaining work in #29, and Bertrand approved its prerequisite patches in #31 while correcting a reader comment in #32; the initialization callback landed unchanged as 21471f18e9, and fixed-entry serialization landed with additional validation and a format-version bump as 9e4664d950.
- The remainder in #33 retained the custom APIs, type conversion, documentation, and examples, while explicitly seeking agreement on reserved IDs and the separate custom-storage arrays.
- Bertrand supplied a separate comment correction in #34, and Michael simplified it to describe reading statistics into memory, committing 72c0b24b2d and confirming the change in #35.
- Dmitry accepted the reserved-ID approach and suggested hiding data-access details in #36; Michael developed that suggestion in #37, then added custom-data accessors and separated the fixed-numbered example into its own source file in #38.
- Dmitry reported successfully implementing a fixed-numbered statistic in another extension in #39 and raised no objection to landing the series in #41.
- The type conversion from #38 landed as 3188a4582a with additional loop-type cleanup, and Michael resent the five remaining patches in #42.
- The core API and documentation patches from #42 landed together as 7949d95945, with consistent built-in naming and loop indexing while retaining the reviewed architecture.
- The accessors from #42 landed unchanged apart from whitespace as 2eff9e678d, followed by the variable-numbered example as 75534436a4 with documentation and test-comment adjustments, and the fixed-numbered example as f68cd847fa with typedef-list additions.
- At the thread's end, Michael reported in #43 that the infrastructure and both examples had landed and available buildfarm and CI results were green; Bertrand's separate field-renaming proposal from #28 was not incorporated, and migration of pg_stat_statements remained future work.