Re: GRANT role TO PUBLIC- not working?

Поиск
Список
Период
Сортировка
От Nikolay Samokhvalov
Тема Re: GRANT role TO PUBLIC- not working?
Дата
Msg-id e431ff4c0608011258h30b11418u6c8d77126dcf2d42@mail.gmail.com
обсуждение исходный текст
Ответ на GRANT role TO PUBLIC- not working?  (Brian Hurt <bhurt@janestcapital.com>)
Список pgsql-novice
according the manual
(http://www.postgresql.org/docs/8.1/interactive/privileges.html), 'The
special name PUBLIC can be used to grant a privilege to every role on
the system.'

So, "PUBLIC" may be considered as special keyword when granting
_priveleges_, not roles.

On 8/1/06, Brian Hurt <bhurt@janestcapital.com> wrote:
>
> I'm having problems granting a role to PUBLIC.  According to the manual,
> you do this by:
>     GRANT role TO PUBLIC;
>
> but when I try this, I get an error:
>
> bhurt_dev=# GRANT test_role TO PUBLIC;
> ERROR:  role "public" does not exist
> bhurt_dev=#
>
> This is Postgresql 8.01.0004.  Any ideas?
>
> Brian
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>


--
Best regards,
Nikolay

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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: GRANT role TO PUBLIC- not working?
Следующее
От: "Greg Steele"
Дата:
Сообщение: Trigger and Recursive Relation ?