Search Postgresql Archives

How to get whether user has ALL permissions on table?

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

 




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

[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