Remove various special checks around default roles
Default roles really should be like regular roles, for the most part.
This removes a number of checks that were trying to make default roles
extra special by not allowing them to be used as regular roles.
We still prevent users from creating roles in the "pg_" namespace or
from altering roles which exist in that namespace via ALTER ROLE, as
we can't preserve such changes, but otherwise the roles are very much
like regular roles.
Based on discussion with Robert and Tom.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a89505fd21da337b81172871d8f65d9a4fa22a8b
Modified Files
--------------
src/backend/catalog/aclchk.c | 7 -------
src/backend/commands/alter.c | 3 ---
src/backend/commands/foreigncmds.c | 13 -------------
src/backend/commands/policy.c | 5 -----
src/backend/commands/schemacmds.c | 4 ----
src/backend/commands/tablecmds.c | 2 --
src/backend/commands/tablespace.c | 4 ----
src/backend/commands/user.c | 11 -----------
src/backend/commands/variable.c | 7 -------
src/test/regress/expected/rolenames.out | 18 +++++-------------
src/test/regress/sql/rolenames.sql | 10 +++++-----
11 files changed, 10 insertions(+), 74 deletions(-)