From: Bruce Momjian <bruce@momjian.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-committers@postgresql.org <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Reserve the "pg_" namespace for roles
Date: Sat, 30 Apr 2016 18:11:29 -0400
Message-ID: <20160430221129.GD556@momjian.us> (raw)
In-Reply-To: <CAOuzzgrZF8VgH_FEmg6CQWKpst8Qotr-4vu4JgyJAnOoyQbs9g@mail.gmail.com>
References: <E1aodSE-0007Jp-22@gemulon.postgresql.org>
<20160429115124.GB28792@momjian.us>
<CAOuzzgrZF8VgH_FEmg6CQWKpst8Qotr-4vu4JgyJAnOoyQbs9g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On Fri, Apr 29, 2016 at 08:05:15AM -0400, Stephen Frost wrote:
> Bruce,
>
> On Friday, April 29, 2016, Bruce Momjian <bruce@momjian.us> wrote:
>
> On Fri, Apr 8, 2016 at 08:56:34PM +0000, Stephen Frost wrote:
> > 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.
>
> Nice you added the check to pg_upgrade, but I assume a pg_dumpall
> restore is going to fail pretty badly, e.g. any pg_* object assignment
> will fail. I guess there isn't much we can do to fix that.
>
>
> The pg_dumpall will work but will throw a warning. A restore will fail to
> recreate any pg_* roles and there could be follow-on errors from that, of
> course.
OK, good --- that's the best we can do.
> I had pg_dumpall throw an error initially, but based on discussion that was
> considered too harsh.
OK.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: bruce@momjian.us, sfrost@snowman.net
Subject: Re: pgsql: Reserve the "pg_" namespace for roles
In-Reply-To: <20160430221129.GD556@momjian.us>
References: <E1aodSE-0007Jp-22@gemulon.postgresql.org> <20160429115124.GB28792@momjian.us> <CAOuzzgrZF8VgH_FEmg6CQWKpst8Qotr-4vu4JgyJAnOoyQbs9g@mail.gmail.com> <20160430221129.GD556@momjian.us>
* 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