model-writtenrun 8965 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed using the parser's standard coercion machinery for SQL-function results after a complaint exposed missing typmod enforcement, choosing assignment-level casts to preserve existing binary-compatible conversions #1.
- The patch moved result tuple-descriptor determination to callers and JunkFilter creation into the executor, added projection queries where direct coercion could alter query semantics, and enabled additional inlining cases with regression tests and documentation updates #1.
- Heikki Linnakangas reviewed the patch and identified contradictory comments about whether the JunkFilter inserts NULLs for dropped columns or removes those columns #2.
- Tom confirmed that inserting NULLs was the accurate description and ended the thread by promising to correct the comment and commit #3.
- The complete patch subsequently landed as 913bbd88dc with only comment edits beyond rebase differences from #1; the commit explains that the overall behavioral change was too large to backpatch.