model-writtenrun 2616 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported in #1 that omitted INSERT columns could produce incorrectly typed NULL constants and domain-coercion expressions that missed planner preprocessing, causing unnecessary execution and potentially invalid plans.
- Tom Lane proposed in #1 a shared coerce_null_to_domain() helper in parse_coerce.c for planner and rewriter callers, plus a development-branch-only requirement that coerce_to_domain() callers supply the domain's base type and typmod.
- The NULL-handling fix from #1 landed as c05268e6ec, with the coerce_type() rearrangement separated out; the fix was backpatched through PostgreSQL 14, while PostgreSQL 13 was omitted because the patch did not apply cleanly.
- The API restriction from #1 landed as ba0da16bd0, incorporating the caller rearrangement originally attached to the first patch and retaining compatibility in stable branches.
- After both commits, Sami Imseih confirmed the reproducer and reported that check-world passed with both patches in #2, while suggesting the name coerce_implicit_null; both changes had landed, and the thread shows no subsequent action on that naming suggestion.