model-writtenrun 3676 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that adding a column through a complex inheritance hierarchy updates the same child catalog tuple repeatedly and fails with “tuple already updated by self,” while a simpler hierarchy succeeds #1.
- Tender Wang traced the failure to a missing CommandCounterIncrement() in ATExecAddColumn() and supplied a fix and regression test #2; Richard Guo endorsed the approach and requested comment, spacing, and cleanup improvements #3, which Tender incorporated in #4.
- Alexander suggested reusing an existing inheritance test hierarchy and reported a separate failure when DROP ROLE names the same role twice #5; Tender supplied an independent patch that sorts role addresses and skips duplicates, explaining that a command-counter increment alone would produce a missing-tuple error #6.
- Alexander then reported a duplicate-entry failure in ALTER TEXT SEARCH CONFIGURATION #7; Tender favored handling duplicates during execution to match other DDL commands #8, and Alexander raised the possibility of shared duplicate-handling helpers #9.
- Tender identified existing duplicate suppression in object_address_present_add_flags() and considered whether the role and text-search paths could share a common solution #10.
- Michael Paquier committed the inheritance fix from #4 with light comment and formatting edits as bb812ab091 and backpatched it through PostgreSQL 12; he retained a separate regression test because existing inheritance tests relied on their own assumptions #11.
- Michael rejected the proposed custom duplicate-removal approach for DROP ROLE and asked that the remaining duplicate-handling problems move to a suitably titled thread; the inheritance fix was complete, while the role patch and text-search issue remained unresolved here #12.