model-writtenrun 7407 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Langote reported that row marks on foreign inheritance parents could trigger an assertion or a missing-CTID error because the planner incorrectly assumed inheritance parents were local tables #1.
- Amit Langote supplied a fix that adds a CTID junk column when inheritance expansion requires one, with regression tests covering foreign and local children and a PostgreSQL 12 variant accommodating different EXPLAIN aliases #1.
- Tom Lane committed the fix with light comment and regression-test changes as 889592344c, backpatched it through PostgreSQL 12, and announced completion in #2.
- After acknowledging the fix in #3, Amit Langote proposed replacing the child-row-mark skip in preprocess_targetlist() with an assertion, explaining that child row marks are created only later #4.
- The original bugfix was committed, while the separate assertion cleanup remained proposed without a recorded response or matching candidate commit at the end of the thread #4.