model-writtenrun 1256 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported two crash paths involving extended statistics on expressions: unchecked failure from examine_attribute() and loading NULL expression-statistics entries; he proposed defensive checks and a custom-type test module for backpatching in #1.
- Corey Huinker tested the series, found user-dependent expected output, and suggested SQL-standard function bodies in #2; Michael removed the output dependency but retained PL/pgSQL because the proposed replacement would bypass the failing statistics-load path, documenting that decision in #3.
- Corey accepted the revised changes in #4, while Chao Li identified comment defects and questioned incomplete memory cleanup in #5; Michael accepted the wording corrections and explained that ANALYZE's memory context handles the remaining allocations in #6.
- Michael elaborated on per-relation memory-context cleanup in #7; after Chao challenged freeing only the container in #8, Michael defended the existing approach for readability and efficiency and retained it in #9.
- The backend-fix patch from #3 landed unchanged apart from rebasing and its commit description as 3b7a6fa157, protecting statistics construction and loading against NULL data.
- The test-module patch from #3 landed as 2176520089 with corrected comments, minor wording edits, and an additional catalog-view check.
- Michael confirmed that both patches had been committed and backpatched through PostgreSQL 14, correcting the initial version-range assessment, and described the final test adjustments in #10; no work remained pending in the thread.