You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Previously, CREATEROLE users were permitted to make nearly arbitrarychanges to roles that they didn't create, with certain exceptions,particularly superuser roles. Instead, allow CREATEROLE users to make suchchanges to roles for which they possess ADMIN OPTION, and togrant membership only in roles for which they possess ADMIN OPTION.When a CREATEROLE user who is not a superuser creates a role, grantADMIN OPTION on the newly-created role to the creator, so that theycan administer roles they create or for which they have been givenprivileges.With these changes, CREATEROLE users still have very significantpowers that unprivileged users do not receive: they can alter, rename,drop, comment on, change the password for, and change security labelson roles. However, they can now do these things only for roles forwhich they possess appropriate privileges, rather than allnon-superuser roles; moreover, they cannot grant a role such aspg_execute_server_program unless they themselves possess it.Patch by me, reviewed by Mark Dilger.Discussion:https://postgr.es/m/CA+TgmobN59ct+Emmz6ig1Nua2Q-_o=r6DSD98KfU53kctq_kQw@mail.gmail.com