model-writtenrun 5303 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Feb - Mar 2022 · 8 entries
- Stephen Frost opened the supplied discussion by advocating restrictions on CREATEROLE and richer role relationships instead of a single ownership field, while Robert Haas emphasized both delegated administration and the need to separate administration from membership #1 #2.
- Robert isolated role self-revocation as a concrete problem and raised separate questions about multiple grantors, dangling grantor OIDs, and consistency with ordinary object privileges; Tom Lane argued that SQL role authorizations must track their grantors #3 #4.
- David G. Johnston clarified that the problematic behavior was the session-user self-administration exception, rather than a general ability to leave arbitrary groups, and Robert accepted that narrower diagnosis #11 #12 #14.
- Robert traced self-administration to an apparently accidental historical change, and Tom agreed that removing the exception was preferable to perpetuating it as an implicit privilege #19 #21 #37.
- Mark Dilger tested removal with check-world and upgrades from four releases without unexpected failures, and Robert then posted the focused patch removing self-administration, updating pg_has_role-related behavior, documentation, and tests #39 #42.
- The broader design remained disputed: Tom favored creator ownership, Stephen proposed ADMIN OPTION-based management followed by finer-grained privileges, and Robert wanted administrators with authority over only the accounts they managed; inheritance and compatibility concerns prevented settling that larger design #48 #64 #69 #84.
- Robert therefore limited the PostgreSQL 15 change to removing self-administration, so any compatibility problem would be isolated; Tom reviewed the patch's explanatory comment and Stephen endorsed proceeding #98 #99 #101.
- The self-administration patch from #42 landed as 79de9842ab, with only Tom's proposed comment wording changed, as Robert confirmed in #102.
Jun - Sep 2022 · 10 entries
- In June, Robert resumed grantor integrity work with a two-stage plan: first prevent dangling pg_auth_members.grantor references, then support independent grants by different grantors; Stephen checked the SQL semantics and supported the grantor-sensitive identity and revocation model #103 #108.
- David proposed treating grants as owned objects for cleanup, and Robert's initial dependency patch added membership OIDs, grantor dependencies, DROP OWNED and REASSIGN OWNED handling, plus two-pass role deletion to make multi-role drops order-independent #110 #112.
- Further experiments showed Robert that ordinary privileges are removed by DROP OWNED but are not transferred by REASSIGN OWNED, so the revised series switched from ownership dependencies to ACL dependencies #113 #114.
- The expanded series also introduced grantor-specific memberships, valid-grantor enforcement, circularity checks, and REVOKE CASCADE, treating the bootstrap superuser as the implicit role owner; the next revision completed dependency-ordered dumping and omitted unreliable grantor information when dumping older servers #114 #115.
- David tested circular and independent admin grants and suggested richer psql membership displays, while Stephen reviewed the implementation and requested clearer documentation, comments, diagnostics, and test coverage; Robert incorporated the focused corrections and left the psql redesign for separate work #116 #117 #118 #121 #125.
- CI exposed a regression test dependent on the bootstrap superuser's name, and fixing it revealed that ALTER GROUP required CREATEROLE where equivalent GRANT commands accepted ADMIN OPTION; Robert corrected that permission inconsistency and revised the tests in the final submission #127.
- The grantor-integrity component of #127 landed unchanged in substance as 6566133c5f, and Robert announced that the second component would follow if no major problems emerged #128.
- The remaining component of #127 landed as ce6b672e44, with a comment correction and catalog-version bump, completing the submitted two-patch series #129.
- After both August commits, Jeff Davis demonstrated surprising differences between explicit and inferred grantors and questioned bootstrap-superuser attribution; Robert defended the chosen integrity rules and their analogy with object ownership, while Jeff proposed preferring ordinary privileges before superuser powers #130 #131 #134 #135.
- That follow-up produced no replacement patch or revert: Jeff accepted focusing on administration without superuser dependence, Robert described further work on inheritance and SET ROLE controls for separate threads, and Tom's final message asked that the completed CommitFest entry be closed #137 #138 #139.