Re: postgres function does not handle PUBLIC - expected? - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: postgres function does not handle PUBLIC - expected?
Date
Msg-id 1281468594-sup-9380@alvh.no-ip.org
Whole thread Raw
In response to postgres function does not handle PUBLIC - expected?  (Kasia Tuszynska <ktuszynska@esri.com>)
List pgsql-admin
Excerpts from Kasia Tuszynska's message of mar ago 10 15:08:20 -0400 2010:
> Hello Postgres Gurus,
>
> Is it expected behavior for the has_table_privilege postgres function to not handle the user PUBLIC? Or should I
submita bug? 
>
> The has_table_privilege function does not handle PUBLIC - the following queries returns the error:
> SELECT has_table_privilege ('PUBLIC','bob.gdb.test1','SELECT') AS SELECT,
> has_table_privilege ('PUBLIC','bob.gdb.test1','INSERT') AS INSERT,
> has_table_privilege ('PUBLIC','bob.gdb.test1','DELETE') AS DELETE,
> has_table_privilege ('PUBLIC','bob.gdb.test1','UPDATE') AS UPDATE;
>
> ERROR:  role "PUBLIC" does not exist

Yeah, this is a bug, see

http://archives.postgresql.org/message-id/4399EF7A-9419-4F84-B51A-A55C5EFAC12A%40nasby.net

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-admin by date:

Previous
From: Kasia Tuszynska
Date:
Subject: Re: postgres function does not handle PUBLIC - expected?
Next
From: Szymon Guz
Date:
Subject: Re: postgres function does not handle PUBLIC - expected?