model-writtenrun 4092 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported an assertion failure when adding an expression-based exclusion constraint to an inheritance parent, supplying a reproducer in #1.
- Alvaro Herrera acknowledged that ATPrepAddPrimaryKey lacked a guard for other constraint types and that test coverage had missed the case in #2.
- The patch in #2 returns early for non-IndexStmt nodes and non-primary indexes, and adds inheritance tests covering exclusion, unique, and foreign-key constraints.
- Alvaro Herrera committed #2 unchanged as e09d763e25, crediting Richard Guo as the reporter.
- Richard Guo thanked Alvaro Herrera after the commit in #3; the thread ended with the fix landed and no outstanding requests or qualifying pre-commit review of the attached patch.