From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyle Bateman <kyle@actarg.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: permissions from system catalogs
Date: Mon, 26 Jun 2006 21:28:51 -0400
Message-ID: <27703.1151371731@sss.pgh.pa.us> (raw)
In-Reply-To: <44A06E04.5000206@actarg.com>
References: <44A06E04.5000206@actarg.com>
Kyle Bateman <kyle@actarg.com> writes:
> Can anyone point me where to look in the system catalogs (or information
> schema) to determine in advance whether a given user (or the current
> user) will have select permission to a given table or view?
Try has_table_privilege()
http://www.postgresql.org/docs/8.1/static/functions-info.html
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, kyle@actarg.com
Subject: Re: permissions from system catalogs
In-Reply-To: <27703.1151371731@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox