Re: Discovering privileges - Mailing list pgsql-interfaces

From Bruno Wolff III
Subject Re: Discovering privileges
Date
Msg-id 20050320155230.GA3935@wolff.to
Whole thread Raw
In response to Discovering privileges  (Murray Cumming <murrayc@murrayc.com>)
Responses Re: Discovering privileges
List pgsql-interfaces
On Sun, Mar 20, 2005 at 15:50:30 +0100, Murray Cumming <murrayc@murrayc.com> 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?

In recent (7.4+ I think) versions of Postgres there are functions provided
for testing access to tables.

Look at table 9-40 in section 9.19 of the version 8 manual.


pgsql-interfaces by date:

Previous
From: Murray Cumming
Date:
Subject: Discovering privileges
Next
From: Michael Fuhr
Date:
Subject: Re: Discovering privileges