model-writtenrun 3560 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut found that assertions contradicted RangeTblEntry.inh documentation: the planner sets inh for RTE_SUBQUERY entries, although comments claimed it was restricted to relations #1.
- Dean Rasheed explained that UNION ALL subqueries use inheritance-like append relations, and Tom Lane clarified that the relation-only restriction applies within the parser and rewriter #2 #3.
- Peter proposed grouping inh with relation fields borrowed by subqueries, correcting the documentation and initialization, and improving the neighboring perminfoindex field order #4.
- Tom preferred a documentation-only correction but supplied wording and requested better packing if inh moved; he also supported the perminfoindex reordering, while Alvaro Herrera supplied its missing inline comment, which Tom accepted #5 #6 #7.
- Peter defended moving inh because its use closely matches the relation fields borrowed by subqueries, unlike lateral, which applies to many entry kinds #8.
- Peter first committed the perminfoindex subset with Alvaro's inline comment and a catalog-version bump as e03349144b, separating that cleanup from the inh work in #4.
- Peter then committed the inh portion with Tom's wording, placement beside relkind, and another catalog-version bump as 6d470211e5; he announced completion and redirected related discussion to another thread #9.