model-writtenrun 9975 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tender Wang reported that adding a primary key with ALTER TABLE ONLY on a parent produced a confusing error naming a child table #1.
- After inspecting ATPrepAddPrimaryKey, Tender Wang explained that checking child-table NOT NULL constraints was intentional and proposed making the inheritance relationship explicit in the error #1.
- The patch changed "of table" to "in child table", retained "is not marked NOT NULL", and updated the regression expectation to match #1.
- Álvaro Herrera committed the two wording changes unchanged apart from rebase context as 2bdbde8b3b, from #1.
- Alvaro Herrera confirmed that the patch was pushed without backpatching, completing the thread's proposed work #2.