Re: Roles - SET ROLE Updated

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Roles - SET ROLE Updated
Дата
Msg-id 22187.1121974479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Roles - SET ROLE Updated  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Roles - SET ROLE Updated
Список pgsql-patches
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> BTW, I realized we do not support granting roles to PUBLIC:
>>
>> regression=# create role r;
>> CREATE ROLE
>> regression=# grant r to public;
>> ERROR:  role "public" does not exist
>>
>> but as far as I can tell SQL99 expects this to work.

> Indeed, I believe you're correct, sorry about missing that.

However, on second thought I'm not sure that this is sensible anyway.

Consider that every role is implicitly a member of PUBLIC --- so isn't
the above a creation of a circular membership loop, which is (for good
reason) forbidden by the spec?

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Roles - SET ROLE Updated
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Roles - SET ROLE Updated