Re: GRANT role TO PUBLIC- not working?

From: "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com>
To: "Brian Hurt" <bhurt(at)janestcapital(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: GRANT role TO PUBLIC- not working?
Date: 2006-08-01 19:58:22
Message-ID: e431ff4c0608011258h30b11418u6c8d77126dcf2d42@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)janestcapital(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-08-01 20:26:25 Re: Trigger and Recursive Relation ?
Previous Message Greg Steele 2006-08-01 19:31:15 Trigger and Recursive Relation ?