Re: GRANT role TO PUBLIC- not working? - Mailing list pgsql-novice

From Nikolay Samokhvalov
Subject Re: GRANT role TO PUBLIC- not working?
Date
Msg-id e431ff4c0608011258h30b11418u6c8d77126dcf2d42@mail.gmail.com
Whole thread Raw
In response to GRANT role TO PUBLIC- not working?  (Brian Hurt <bhurt@janestcapital.com>)
List 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 by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: GRANT role TO PUBLIC- not working?
Next
From: "Greg Steele"
Date:
Subject: Trigger and Recursive Relation ?