Skip site navigation (1) Skip section navigation (2)

Re: Discovering privileges

From: Murray Cumming <murrayc(at)murrayc(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Discovering privileges
Date: 2005-03-20 16:45:29
Message-ID: 1111337130.5820.7.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-interfaces
On Sun, 2005-03-20 at 08:42 -0700, Michael Fuhr wrote:
> On Sun, Mar 20, 2005 at 03:50:30PM +0100, Murray Cumming wrote:
> 
> > I'm using the pg_user and pg_group system tables to discover the list of
> > users, and the groups to which they belong.
> > 
> > But how can I discover the privileges that these users and groups have
> > for the various tables. Is this also in one of the system tables?
> 
> You could look at pg_class.relacl,

I can't make much sense of that so far. Ca you give any clues on how
that works?

>  but the "Access Privilege Inquiry
> Functions" (has_table_privilege(), etc.) might be easier to use.
> 
> http://www.postgresql.org/docs/8.0/interactive/functions-info.html#FUNCTIONS-INFO-ACCESS-TABLE

Interesting. Is there anything like that for a group instead of a user?
I'm most interested in privileges of a group.

Thanks.

-- 
Murray Cumming
murrayc(at)murrayc(dot)com
www.murrayc.com
www.openismus.com


In response to

Responses

pgsql-interfaces by date

Next:From: Michael FuhrDate: 2005-03-20 17:02:28
Subject: Re: Discovering privileges
Previous:From: Michael FuhrDate: 2005-03-20 16:01:36
Subject: Re: Discovering privileges

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group