model-writtenrun 1368 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih proposed tests for pg_stat_statements planner and ExecutorFinish nesting levels after finding that removing their nesting-level updates did not fail existing tests; his patch exercises planning tracking and an AFTER trigger #1.
- Michael Paquier confirmed both coverage gaps #2 and committed Sami's tests with light comment and formatting changes as 1572ea96e6.
- Alexander Lakhin reported that the new planner test failed on two CLOBBER_CACHE_ALWAYS buildfarm animals and reproduced the failure locally: the inner query appeared normalized instead of retaining its constants #3.
- Michael Paquier found that manipulating debug_discard_caches would not prevent normalization, so he supplied a fix using DISCARD PLANS before the first function call to make normalization consistent while preserving the nesting-level assertion #4; this patch landed unchanged as 72e3abd082.
- Michael Paquier subsequently reported a successful avocet buildfarm run and considered the issue resolved, leaving both the added tests and their stabilization fix committed #5.