model-writtenrun 4663 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed broad utility-query normalization in #1 to reduce pg_stat_statements entry proliferation, accompanied by regression-test separation and comprehensive utility coverage.
- After discussing the approach with Bertrand Drouvot, Michael narrowed the proposal in #2 because normalizing A_Const values mangled multiword transaction options and could group different isolation levels; the broad implementation remained attached only to illustrate its effects.
- Bertrand supported Const-only normalization and requested additional session-characteristics tests in #3, while Michael's revision in #4 also separated level tracking from planning tests and retained the existing main-test GUC settings.
- Following Bertrand's approval in #5, the test refactoring landed as e8dbdb15db and utility coverage landed as de2aca2885, both extracted from #4 with light test edits described in #6.
- Michael resent the remaining normalization work in #7, and its documentation correction was subsequently extracted and reworded in 6a88a05861 to explain structural hashing of utility queries.
- Michael added a second test split in #8, separating SELECT, DML, user-activity, and WAL cases; Bertrand checked coverage and suggested cleanup in #9, leading to d0028e35a0.
- With the test restructuring committed, Michael combined the remaining normalization patches into the standalone Const-only patch in #10.
- Andrei Zubkov reported in #11 that user-activity cleanup statements polluted WAL-test results, prompting 9a714b9d6e to add final statistics resets; Michael confirmed the intended test isolation in #12.
- Michael split #10 into three commits without changing its implementation: d69cd3a2e2 excluded duplicate materialized-view query traversal, a4e003338d excluded transformed CALL fields, and daa8365a90 enabled normalized utility query strings in pg_stat_statements.
- After announcing completion in #13, Michael attached a reference-only CALL-normalization experiment using custom jumbling of transformed arguments, including OUT arguments, and explicitly said it was not intended for integration.
- Months later, jian he tested the CALL experiment and reported missing nested CALL entries under track = all in #14; Michael confirmed in #15 that the omission also occurred in PostgreSQL 15, leaving that question unresolved while the main Const-only normalization work was already committed.