Re: Discovering privileges

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Murray Cumming <murrayc(at)murrayc(dot)com>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Discovering privileges
Date: 2005-03-20 15:52:30
Message-ID: 20050320155230.GA3935@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Sun, Mar 20, 2005 at 15:50:30 +0100,
Murray Cumming <murrayc(at)murrayc(dot)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.

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Fuhr 2005-03-20 16:01:36 Re: Discovering privileges
Previous Message Michael Fuhr 2005-03-20 15:42:47 Re: Discovering privileges