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: Reserve the "pg_" namespace for roles
Date: Fri, 08 Apr 2016 20:56:34 +0000
Message-ID: <E1aodSE-0007Jp-22@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Reserve the "pg_" namespace for roles

This will prevent users from creating roles which begin with "pg_" and
will check for those roles before allowing an upgrade using pg_upgrade.

This will allow for default roles to be provided at initdb time.

Reviews by José Luis Tallón and Robert Haas

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/293007898d3fa5a815c1c5814df53627553f114d

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml          |  8 ++++--
src/backend/catalog/aclchk.c            |  7 +++++
src/backend/catalog/catalog.c           |  5 ++--
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             | 49 +++++++++++++++++++++++++++++++++
src/backend/commands/variable.c         |  3 ++
src/backend/utils/adt/acl.c             | 39 ++++++++++++++++++++++++++
src/bin/pg_dump/pg_dumpall.c            | 11 +++++++-
src/bin/pg_upgrade/check.c              | 40 +++++++++++++++++++++++++--
src/bin/psql/command.c                  |  4 +--
src/bin/psql/describe.c                 |  5 +++-
src/bin/psql/describe.h                 |  2 +-
src/bin/psql/help.c                     |  4 +--
src/include/utils/acl.h                 |  1 +
src/test/regress/expected/rolenames.out | 20 ++++++++++++++
src/test/regress/sql/rolenames.sql      | 10 +++++++
21 files changed, 226 insertions(+), 13 deletions(-)


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


view thread (4+ messages)  latest in thread

Message-ID: <E1aodSE-0007Jp-22@gemulon.postgresql.org>
Permalink:  ../E1aodSE-0007Jp-22@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aodSE-0007Jp-22@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: Reserve the "pg_" namespace for roles
  In-Reply-To: <E1aodSE-0007Jp-22@gemulon.postgresql.org>
  References: <E1aodSE-0007Jp-22@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