| From: | Stephen Frost <sfrost(at)snowman(dot)net> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Remove various special checks around default roles |
| Date: | 2016-05-06 18:06:59 |
| Message-ID: | E1ayk9T-0000Ts-2S@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2016-05-06 18:40:43 | pgsql: Use mul_size when multiplying by the number of parallel workers. |
| Previous Message | Peter Eisentraut | 2016-05-06 18:02:57 | pgsql: Update config.guess and config.sub |