CREATEROLE rework
PostgreSQL 16 overhaul of role administration: CREATEROLE limited to roles held WITH ADMIN OPTION, valid pg_auth_members grantor tracking, INHERIT and SET options on role grants, createrole_self_grant.
Versions
- PostgreSQL 19 · worked-on · improved · major
- PostgreSQL 18 · worked-on · improved · major
- PostgreSQL 17 · worked-on · improved · moderate
- PostgreSQL 16 · shipped · improved · major · 4 commits · +506 / -192 lines
Threads
- information_schema.applicable_roles reports a role with no usable membership option
- Why is_admin_of_role() use ROLERECURSE_MEMBERS rather than ROLERECURSE_PRIVS?
- pg_dumpall can't be restored with different bootstrap superuser
- Orphaned users in PG16 and above can only be managed by Superusers
- Re: [PATCH] Why is_admin_of_role() uses ROLERECURSE_MEMBERS rather than ROLERECURSE_PRIVS?
- roles management problem after upgrading in PG 17
- Things I don't like about \du's "Attributes" column
- fixing CREATEROLE
- pg16 ALTER ROLE [NO]INHERIT has no effect on existing grants
- Error for GRANTED BY in PG16&PG17 that does not happen in PG15
- CREATE ROLE bug?
- Superuser can't revoke role granted by non-superuser
- BUG #18639: Unexpected behavior with SET ROLE and CREATE ROLE interaction
- BUG #18622: Attempt to grant role in absence of INHERIT option fails with internal error
- create role manual
- roles that have the CREATEROLE privilege can no longer GRANT predefined roles
- SET ROLE documentation improvement
- CREATE ROLE inheritance details
- REASSIGN pg_auth_members
- CREATE ROLE
- REVOKE FROM warning on grantor
- Show password presence in pg_roles for authorized roles
- A comment in DropRole() contradicts the actual behavior
- ALTER ROLE documentation improvement
- BUG #18183: Unable to grant similar roles after changing user from No inheritance to Inheritance.
- BUG #18137: PG16 release note doc bug in "Allow GRANT group_name TO user_name ..."
- correct documentation in set role
- Can a role have indirect ADMIN OPTION on another role?
- multiple membership grants and information_schema.applicable_roles
- psql: Add role's membership options to the \du+ command
- Remove duplicates of membership from results of \du
- almost-super-user problems that we haven't fixed yet
- Missing default value of createrole_self_grant in document
- v16 GRANT role TO role needs a multi-option setting capability
- pgsql: Add new GUC createrole_self_grant.
- allowing for control over SET ROLE
- has_privs_of_role vs. is_member_of_role, redux
- Re: CREATEROLE and role ownership hierarchies
- pg_has_role's handling of ADMIN OPTION is pretty weird
- let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
- CREATEROLE and role ownership hierarchies
- Add regression coverage for REVOKE ADMIN OPTION
- Role Self-Administration