How to get whether user has ALL permissions on table? - Mailing list pgsql-general

From dipti shah
Subject How to get whether user has ALL permissions on table?
Date
Msg-id k2nd5b05a951004150049l671b83fatcc2f51065b9c54c8@mail.gmail.com
Whole thread Raw
Responses Re: How to get whether user has ALL permissions on table?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general

Hi, I have granted ALL permissions on 'techtable' to 'user1'.
 
 techdb=# select pc.relname, pc.relacl from pg_class pc, pg_namespace pn where pc.relnamespace=pn.oid and pn.nspname='techdb' and pc.relname='techtable';
 relname   |                              relacl
-----------+-------------------------------------------------------------------
 techtable | {postgres=arwdDxt/postgres,=ar/postgres,user1=arwdDxt/postgres}
(1 row)
 
Could anyone please tell me if there is any function or command in PostGreSql which returns True if given user has ALL permissions on given table? Is there any alternative way to do this. I have table and user names and want to know whether user has ALL permissions on table or not.
 
Thanks,
Ditpi

pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: [SOLVED] Error in Trigger function. How to correct?
Next
From: "A. Kretschmer"
Date:
Subject: Re: How to get whether user has ALL permissions on table?