Re: [GENERAL] Getting users/privs for tables.

2011-03-17 Thread Gauthier, Dave
information_schema.table_privileges has it. Thanks ! From: Adrian Klaver [mailto:adrian.kla...@gmail.com] Sent: Thursday, March 17, 2011 10:59 AM To: pgsql-general@postgresql.org Cc: Gauthier, Dave Subject: Re: [GENERAL] Getting users/privs for tables. On Thursday, March 17, 2011 7:48:37 am

Re: [GENERAL] Getting users/privs for tables.

2011-03-17 Thread Adrian Klaver
On Thursday, March 17, 2011 7:48:37 am Gauthier, Dave wrote: > Hi: > > I'm trying to determine who has what privs for what tables. Couldn't find > any canned views for that (but may have missed it). Or is there a query > that can get this from the metadata somehow? > > Thanks in Advance. http:

Re: [GENERAL] Getting users/privs for tables.

2011-03-17 Thread Tom Lane
"Gauthier, Dave" writes: > I'm trying to determine who has what privs for what tables. Couldn't find > any canned views for that (but may have missed it). Or is there a query that > can get this from the metadata somehow? You could try using has_table_privilege() in a join between pg_class an

[GENERAL] Getting users/privs for tables.

2011-03-17 Thread Gauthier, Dave
Hi: I'm trying to determine who has what privs for what tables. Couldn't find any canned views for that (but may have missed it). Or is there a query that can get this from the metadata somehow? Thanks in Advance.