model-writtenrun 183 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ilia Evdokimov reported that ANALYZE retained sample-sized allocations for every column combination when building ndistinct extended statistics, with peak memory falling from 971076 kB to 112780 kB in his patched reproduction #1.
- His patch used a dedicated memory context reset after each combination, following the existing dependency-statistics approach and addressing allocations missed by earlier extended-statistics fixes #1.
- Michael Paquier tested repeated ANALYZE runs with default_statistics_target set to 10000, confirmed that memory stayed under control, and supported backpatching through PostgreSQL 14 after the version 19 RC1 tag #2.
- Michael Paquier committed the patch unchanged as 6d4607e886, with backpatching through PostgreSQL 14; his testing is not listed as a suggested review because he was also the committer.
- After the RC1 tag was pushed, Michael Paquier confirmed that the fix had been applied, leaving no outstanding revisions in the thread #3.