model-writtenrun 2044 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jian he opened the thread with a reproducer showing that pg_dump omitted comments on domain NOT NULL constraints and proposed collecting those constraints alongside CHECK constraints in #1.
- Alvaro Herrera requested separating publicly visible field renames for backpatch compatibility in #2, and Jian split the patch and added tests in #3.
- Alvaro's testing exposed missing constraint names and raised doubts about backpatching in #4; Jian added default-name suppression with a temporary PostgreSQL 18 restriction in #5, then restored PostgreSQL 17 support and revised output placement while reporting a dependency-loop problem in #6.
- Alvaro supplied a delta introducing a dedicated TypeInfo->notnull pointer, retaining explicit constraint-type checks, and separating comment assertions in #7, making the proposed field-renaming patch unnecessary; Tom Lane confirmed that these private structs could change in #8.
- While reviewing the redesign, Jian found that comments on NOT VALID domain constraints appeared before the constraints existed in #9, then supplied a locally tested fix in #10; Alvaro extracted it as an independent, broadly backpatchable fix in #11.
- The invalid-constraint ordering fix landed as 57949cea5a from #11, with memory cleanup and regression objects retained for pg_upgrade testing.
- Alvaro posted the consolidated NOT NULL patch in #12, explaining that NOT VALID domain NOT NULL constraints would require additional implementation; Jian endorsed the patch with a small simplification request in #13.
- The NOT NULL work landed as 6b755d8d70 from #12, backpatched through PostgreSQL 17; Alvaro explained the final array-index corrections, unquoted-name comparisons, and missing-catalog-row fallback in #14.
- Noah Misch identified a remaining dependency error in the invalid-constraint fix in #15: parallel restore could issue COMMENT before the separately dumped constraint existed, so the comment needed to depend on the constraint itself.
- At the thread's last message, Alvaro approved Noah's inline correction in #16; it subsequently landed as c044b50d19, completing the three fixes represented here.