model-writtenrun 8085 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that forcing GEQO caused partition_join regression tests to crash because child equivalence-class members outlived their allocation context, and supplied a memory-context fix while warning that duplicate members would accumulate across GEQO rounds #1.
- Ashutosh Bapat traced the existing child-join code and explained how larger joins could duplicate equivalence-class members even without GEQO; he suggested tighter relation-set checks and, more broadly, polymorphic Var nodes to reduce expression copying #2.
- Tom Lane preferred translating child expressions on demand rather than broadening Var semantics, described an unfinished implementation, and proposed landing the context fix while tolerating memory bloat in stable branches #3.
- Ashutosh Bapat raised memory-management concerns about repeated translation and accepted the immediate context fix #4; Tom Lane committed #1 with diagnostic assertions removed and an explanatory comment added as d7885b1f87, backpatched through PostgreSQL 12, and confirmed completion #5.
- After the commit, Robert Haas questioned why planning creates separate target lists and qualifications for inheritance children when many differences become irrelevant during execution #6.
- Amit Langote supported on-demand translation as a way to reduce equivalence-class lookup costs and recalled an unsuccessful earlier proof of concept; the crash fix was landed, while duplicate-member bloat and broader expression-sharing improvements remained unresolved #7 #8.