Re: How to get user privs on a table using select - Mailing list pgsql-general

From Josh Kupershmidt
Subject Re: How to get user privs on a table using select
Date
Msg-id CAK3UJRFJCkQo5DmRi1_GoJ+usJ8V6OEBk5LwOAtiUb5FTmod6Q@mail.gmail.com
Whole thread Raw
In response to How to get user privs on a table using select  ("Gauthier, Dave" <dave.gauthier@intel.com>)
List pgsql-general
On Wed, Jun 6, 2012 at 1:41 PM, Gauthier, Dave <dave.gauthier@intel.com> wrote:
> Inside a perl/dbi script, I want to determine which privs (select, insert,
> update, delete, ...) user 'foo' has on table 'footable'.   There must be
> metadata tables or a view that has this.

Try:
  psql -E dbname
  \z tablename

And look at the query printed by psql. You should be able to adapt
that to your needs.

Josh

pgsql-general by date:

Previous
From: Efraín Déctor
Date:
Subject: Re: Renumber table rows
Next
From: Benson Jin
Date:
Subject: Need help in transferring FP to Int64 DateTime