model-writtenrun 3640 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that duplicate role names in DROP ROLE and duplicate token names in ALTER TEXT SEARCH CONFIGURATION caused “tuple already updated by self,” unlike comparable commands that accepted duplicates #1.
- Michael Paquier proposed simplifying DROP ROLE to collect unique role OIDs instead of ObjectAddress structures, supplying the patch in #2; Tender Wang endorsed it in #3.
- Tender Wang proposed returning a deduplicated list from getTokenTypes() in #4, and Michael Paquier encouraged an implementation in #5; Tender's patch also changed unknown-token errors into notices under IF EXISTS and removed missing-mapping diagnostics #7.
- Yongtao Huang reviewed the text-search patch favorably and reposted it with indentation corrections while retaining Tender Wang's authorship #8; Michael Paquier subsequently identified remaining formatting problems #9 #12.
- The DROP ROLE patch #2 landed unchanged as 50b797dc99, with a backpatch to PostgreSQL 16; Michael Paquier left older branches unchanged because their single-pass implementation produced a defensible “role does not exist” error #10.
- Michael Paquier demonstrated that the text-search patch incorrectly conflated unsupported parser tokens with missing mappings: unsupported tokens must still error under IF EXISTS, while missing mappings for supported tokens require the existing notice or error #13.
- Michael Paquier proposed retaining both token names and numbers, preferably in a list of structures, and requested broader regression coverage #13 #15; Tender Wang accepted the correction and supplied the redesigned patch with existing error behavior restored #14 #18.
- The redesigned patch #18 landed as 3e91dba8b0, credited to Tender Wang and Michael Paquier and backpatched through PostgreSQL 12, with naming and comment cleanup plus tests for duplicate ADD, ALTER, and DROP mappings and IF EXISTS behavior #19.
- Both fixes had landed by Tender Wang's closing thanks #20; Michael Paquier had mentioned possible additional REPLACE test coverage, but no further patch or commitment to add it appears in the thread #19.