model-writtenrun 4840 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Nov 2022 - Jan 2023 · 13 entries
- Robert Haas opened the thread with #1, explaining that CREATEROLE could seize other users' accounts and obtain operating-system access through predefined roles, and proposed limiting administration to roles held with ADMIN OPTION while automatically granting that option on newly created roles.
- The initial series in #1 included two preparatory refactors and optional INHERITCREATEDROLES and SETCREATEDROLES attributes, with documentation and fuller tests still outstanding; Robert considered the behavioral fix suitable for the development branch rather than back-patching.
- Wolfgang Walther proposed database-specific roles in #2, but Robert kept that work outside this series in #3, and Tom Lane explained the catalog-index obstacles to Wolfgang's implementation suggestions in #5 and #8.
- Joe Conway supported the initial direction in #9, while Mark Dilger endorsed the refactors and core restriction but criticized the new role attributes in #10 and preferred explicit command behavior in #12.
- Robert clarified in #15 that creators would always retain ADMIN OPTION, while Tom objected to context-dependent command behavior in #16 and to representing configurable defaults as role-property bits in #26.
- Alternative designs included David G. Johnston's conversion of privilege attributes into predefined roles in #23 and Wolfgang's ALTER DEFAULT PRIVILEGES proposal in #31, but neither was incorporated into this series.
- Wolfgang argued in #38 that optional SET and INHERIT rights should be separately revocable, and David endorsed the core patches while proposing an additional creator-issued grant in #46; Robert recognized that this could be controlled by a GUC in #48.
- David supported the GUC's layered configuration and noted the mismatch between database-local default privileges and cluster-wide roles in #52, while Robert emphasized the value of system-wide defaults in #53.
- Robert's revised series in #54 replaced the role attributes with createrole_self_grant, retained the mandatory bootstrap-superuser ADMIN grant, added a separate optional grant controlled by the creator, fixed ownership-check arguments, and added documentation and security-label tests.
- The same submission #54 introduced a separately back-patchable explanation of existing CREATEROLE powers; Álvaro Herrera reviewed it in #55, and Robert committed it with the requested wording fixes as 1c77873727 before resending the remaining patches in #57.
- Robert committed the two unchanged refactoring implementations from #57 as 25bb03166b and 39cffe95f2, expanding their commit explanations before posting the remaining functional patches with fuller regression tests in #58.
- In #58, Robert explicitly deferred broader decisions about which role attributes a CREATEROLE user should be allowed to assign, including CREATEDB, CREATEROLE, and BYPASSRLS, because a satisfactory general design remained unsettled.
- The final two patches from #58 landed unchanged as cf5eb37c5e and e5b8a4c098, with Robert announcing completion in #59 and allowing closure of the commitfest entry while documentation follow-up continued elsewhere in #61.
Apr - May 2025 · 4 entries
- Tom reopened the thread in April 2025 with #63, reporting that a nondefault createrole_self_grant setting could introduce extra grants when restoring pg_dumpall output as a non-superuser and proposing that dump output reset the setting.
- David suggested explicitly spelling out defaults in dumps in #64, while Tom revisited a role-property alternative in #67; Robert subsequently explained in #69 that CREATE ROLE cannot suppress the separate automatic grant and therefore favored resetting the GUC, which David accepted in #70.
- After investigating the proposed dump fix, Robert questioned its justification in #73 because restoring complete pg_dumpall output as a non-superuser already encounters broader unsupported cases, and preserving self-grants might be useful when migrating from a superuser environment.
- At the thread's end, all original patches had landed, but no dump/restore fix had been attached or announced; Greg Sabino Mullane's final response in #74 favored running pg_dumpall as superuser, leaving the proposed GUC reset unresolved.