Search Postgresql Archives

Re: How to get user privs on a table using select

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 6, 2012 at 1:41 PM, Gauthier, Dave <dave.gauthier@xxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux