Re: "pg_xxx" role name restriction not applied to bootstrap superuser?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: "pg_xxx" role name restriction not applied to bootstrap superuser?
Дата
Msg-id CAKFQuwZAAvZ_u2cB9p7EsRzt+8oGo8qYrQnSdH7vWf8LMWmF4w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Re: "pg_xxx" role name restriction not applied to bootstrap superuser?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: minor message improvement
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Reviewing freeze map code