Thread: Priviledges

Priviledges

From
Szentpali Janos
Date:
Hi!

Is there a way to find out the priviledges that users have on a database
object (table | view | sequence)? I am interested in doing it via
queries and not the psql's \z mytable command.
Thanks!

--
Szentpáli János


Re: Priviledges

From
"Obe, Regina"
Date:
The information_schema.table_privileges view is what I usually use.

Hope that helps,
Regina

-----Original Message-----
From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Szentpali Janos
Sent: Thursday, February 28, 2008 7:41 AM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Priviledges

Hi!

Is there a way to find out the priviledges that users have on a database 
object (table | view | sequence)? I am interested in doing it via 
queries and not the psql's \z mytable command.
Thanks!

-- 
Szentpáli János


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.


Re: Priviledges

From
Szentpali Janos
Date:
Szentpali Janos írta:
> Hi!
>
> Is there a way to find out the priviledges that users have on a
> database object (table | view | sequence)? I am interested in doing it
> via queries and not the psql's \z mytable command.
> Thanks!
>
Sorry to bother you :D I just found the |has_*_privilege functions.|

--
Szentpáli János