model-writtenrun 280 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported an assertion failure caused by a flattened lateral UNION ALL member whose nullable reference introduced an outer-join relid unavailable in the child's parameterization #1.
- Richard Guo proposed deriving child clause_relids from the equivalence members' em_relids, matching existing handling of other child join clauses, and supplied a patch with two regression cases #1.
- wenhui qiu reviewed the proposed derivation of clause_relids from child equivalence members #2.
- Richard Guo agreed that num_base_rels also needed updating and demonstrated that the existing code left it stale #3.
- Richard Guo committed the original patch with additional num_base_rels synchronization as a464d31ff6, then confirmed that the fix had been pushed and back-patched through PostgreSQL 16, concluding the thread #4.