model-writtenrun 8806 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Gierth reported a bug discovered through Vik Fearing's periods extension: tuple conversion could incorrectly skip missing-default expansion, producing NULL values even for a NOT NULL column, and supplied a partition-trigger reproducer in #1.
- Vik Fearing supplied a fix in #2 that forces conversion whenever a source attribute has atthasmissing, allowing tuple deformation to fill in its value.
- Andres Freund requested a regression test in #3 and suggested its location in #5; Vik incorporated the reproducer into the alter_table regression tests while retaining the original code fix in #6.
- Andrew Gierth pointed out that the regression comments should describe successful behavior in #7, then announced his intention to commit with corrected comments in #8.
- Andrew committed #6 as bf6cc19e34 with light test-comment and formatting edits, and the fix was backpatched to PostgreSQL 11 and 12.
- After the commit, Michael Paquier said the patch looked correct on HEAD and the stable branches but requested coverage of convert_tuples_by_position() in addition to the name-based conversion path in #9; that additional test remained unresolved at the end of the thread.