model-writtenrun 508 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- ChangAo Chen reported that a non-inherited membership chain could pass the role-administration check but fail grantor selection with an internal "no possible grantors" error, and proposed making both searches follow inherited privileges in #1 and #2.
- Chen's initial patch changed is_admin_of_role() globally in #3; subsequent revisions adjusted DROP ROLE regression expectations and clarified comments in #4 and #6, with favorable reviews from Chao Li in #5 and Pretham in #7.
- Nathan Bossart warned that the broader permission restriction could break existing scripts in #8, and Robert Haas argued for preserving non-membership administration behavior while using a separate inherited-privilege check for membership changes in #9.
- Chen implemented that narrower design in #10, adding a helper for the two membership authorization checks while leaving is_admin_of_role() unchanged; Nathan confirmed it resolved the reported case but questioned its name in #11, and Jacob Champion suggested following the existing has_privs naming convention in #12.
- Chen demonstrated that direct ADMIN rights still work without inheritance in #13, which Nathan confirmed in #14; Nathan nevertheless chose the narrower fix for safe backpatching and left broader changes to indirect administration rights unresolved.
- Nathan posted the final revision in #15, crediting Chen as author, renaming the helper to has_admin_privs_of_role(), explaining its distinction from is_admin_of_role(), and adding regression coverage for GRANT and ALTER GROUP failures; Chen approved it in #16.
- Nathan committed the final patch without code or test changes as dbda203fe9, with backpatching through PostgreSQL 16, and announced completion in #17; the reported error was fixed, while broader changes to non-membership administration semantics remained deferred.