pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Remove various special checks around default roles
Date: Fri, 06 May 2016 18:06:59 +0000
Message-ID: <E1ayk9T-0000Ts-2S@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ayk9T-0000Ts-2S@gemulon.postgresql.org>
Permalink:  ../E1ayk9T-0000Ts-2S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ayk9T-0000Ts-2S@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: sfrost@snowman.net
  Subject: Re: pgsql: Remove various special checks around default roles
  In-Reply-To: <E1ayk9T-0000Ts-2S@gemulon.postgresql.org>
  References: <E1ayk9T-0000Ts-2S@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox