model-writtenrun 9709 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane discovered missing propagation of lateral-reference information through nested UNION ALL descendants while investigating bug #15613, and proposed an ancestor-ordered traversal of append_rel_list in #1, with additional assertions deferred until that separate bug was fixed.
- David Rowley asked which invalid parent references required the patch's NULL check in #2, and Tom traced them to inherited DELETE planning retaining irrelevant AppendRelInfo entries in #3, initially preferring to remove those entries.
- Amit Langote explained in #4 why inherited target relations legitimately lack RelOptInfo entries during child planning and recommended documenting that behavior beside the NULL-parent guard.
- Tom's separate trimming experiment in #5 could not remove irrelevant sibling-descendant entries, so he retained the NULL-parent guard and accepted the explanatory comment; he left the trimming patch open as an unmeasured performance proposal.
- The subsequent commit bdd9a99aac landed the initsplan.c portion of #1 with the explanatory comment and a dead-relation guard; the relnode.c assertions remained deferred, and the planner.c proposal from #5 was not included.