Re: Checking Permissions with SQL

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Joseph" <lters(at)mrtc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Checking Permissions with SQL
Date: 2001-02-09 12:47:08
Message-ID: 200102091247.f19Cl8w00756@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Joseph" wrote:
>How would I be able to check whether I have select,update,insert,etc
>permissions on a given table with an sql statement?

select relacl from pg_class where relname = 'my_table';

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Let the words of my mouth, and the meditation of my
heart, be acceptable in thy sight, O LORD, my
strength, and my redeemer." Psalms 19:14

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Livesey 2001-02-09 13:39:56 PostgreSQL vs Oracle vs DB2 vs MySQL - Which should I use?
Previous Message Joseph 2001-02-09 11:17:21 Checking Permissions with SQL