From: Bruno Wolff III <bruno@wolff.to>
To: Murray Cumming <murrayc@murrayc.com>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Discovering privileges
Date: Sun, 20 Mar 2005 09:52:30 -0600
Message-ID: <20050320155230.GA3935@wolff.to> (raw)
In-Reply-To: <1111330231.5820.4.camel@localhost.localdomain>
References: <1088799354.3319.110.camel@murrayc_debian>
<Pine.LNX.4.56.0407021856250.5008@screw>
<1111330231.5820.4.camel@localhost.localdomain>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: bruno@wolff.to, murrayc@murrayc.com
Subject: Re: Discovering privileges
In-Reply-To: <20050320155230.GA3935@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox