Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awd79-00030Y-Vg for pgsql-committers@arkaria.postgresql.org; Sat, 30 Apr 2016 22:11:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1awd79-000159-9N for pgsql-committers@arkaria.postgresql.org; Sat, 30 Apr 2016 22:11:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1awd6w-0000r5-Je for pgsql-committers@postgresql.org; Sat, 30 Apr 2016 22:11:38 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1awd6o-0005Kk-Md for pgsql-committers@postgresql.org; Sat, 30 Apr 2016 22:11:37 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1awd6n-0007uj-74; Sat, 30 Apr 2016 18:11:29 -0400 Date: Sat, 30 Apr 2016 18:11:29 -0400 From: Bruce Momjian To: Stephen Frost Cc: "pgsql-committers@postgresql.org" Subject: Re: pgsql: Reserve the "pg_" namespace for roles Message-ID: <20160430221129.GD556@momjian.us> References: <20160429115124.GB28792@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Fri, Apr 29, 2016 at 08:05:15AM -0400, Stephen Frost wrote: > Bruce, > > On Friday, April 29, 2016, Bruce Momjian 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 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