Re: Check if SELECT is granted

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Poul Møller Hansen <freebsd(at)pbnet(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Check if SELECT is granted
Date: 2005-09-01 20:12:27
Message-ID: 5972.1125605547@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?UG91bCBNw7hsbGVyIEhhbnNlbg==?= <freebsd(at)pbnet(dot)dk> writes:
> I'm wondering if it's possible for the ordinary user to check if SELECT
> is granted on a give table, without doing the select ?

See the has_table_privilege() function.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2005-09-01 20:21:46 Re: ODBC and inappropriate select *
Previous Message Cristian Prieto 2005-09-01 20:10:04 ECPG examples...