Re: "pg_xxx" role name restriction not applied to bootstrap superuser? - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: "pg_xxx" role name restriction not applied to bootstrap superuser?
Date
Msg-id CAKFQuwZAAvZ_u2cB9p7EsRzt+8oGo8qYrQnSdH7vWf8LMWmF4w@mail.gmail.com
Whole thread Raw
In response to Re: Re: "pg_xxx" role name restriction not applied to bootstrap superuser?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Saturday, May 7, 2016, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> ... but I'm left with a policy question: should initdb disallow
>> bootstrap superuser names like "pg_xxx"?

> On the whole, I'd vote to treat the bootstrap user as a normal role and
> therefore have the same restriction in place for that user also.

If we're going to enforce such a restriction, I think it would be
a good thing for it to be in place in beta1.


I don't fathom a good reason to treat only the bootstrap user differently.  I'd second guess prohibiting pg_ generally instead of only the specific system roles in use in a given release.  Having beta1 go out with full restrictions will at least maximize the chance of getting complaints and insight into how prevalent the prefix is in the wild.

David J. 

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: minor message improvement
Next
From: Masahiko Sawada
Date:
Subject: Re: Reviewing freeze map code