model-writtenrun 3039 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nikhil Raj reported much slower information_schema queries on PostgreSQL 16 than PostgreSQL 13 in #1, and confirmed that vacuuming, reindexing, and analyzing had not resolved the problem in #3.
- Tom Lane identified failed predicate pushdown in #5, while David Rowley traced the regression to outer-join-aware Vars in #6 and supplied a small reproducer exposing the interaction between casts, outer joins, and PlaceHolderVars in #10.
- Tom explained in #11 that outer-join reduction left unnecessary PlaceHolderVars blocking pushdown; allowing their pushdown or removing them more generally looked too risky to backpatch.
- Tom posted a localized alternative in #12: avoid wrapping strict expressions and attach nullingrels to their contained Vars or PHVs, while noting extra relid computation and a newly failing Memoize test.
- David diagnosed the lost Memoize opportunity in #13 and #16, and Richard Guo checked the null-propagation reasoning and supported extending add_nulling_relids to avoid unnecessary relid computation in #17 and #18.
- Richard advocated broader removal of redundant PHVs as future optimization work in #20, but the eventual patch retained the localized, backpatchable approach.
- Richard explained the affected lateral-expression cases in #21; Tom concluded that the resulting ordinary join clause was reasonable and proposed dropping the artificial Memoize test pending better path generation in #22, which Richard accepted in #23.
- Following Justin Clift's testing questions in #8 and #19, David recommended narrowly focused regression plans rather than complex information_schema plans in #24.
- Tom's polished series in #25 added regression coverage, extended add_nulling_relids, and fixed a draft bug by propagating nullingrels before adjusting variable levels; it isolated the master-only Memoize test removal so that removal could later be reversed.
- The test-removal patch from #25 landed unchanged as 3409b4db63, followed by the optimizer patch as cb8e50a4a0 with only commit-message clarification and backports through PostgreSQL 16.
- Both submitted patches had landed by the final message, where Nikhil requested a bug-tracker reference in #26; broader PHV elimination and improved Memoize path generation remained future work, and no answer to that reference request appears in the thread.