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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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