X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 94C669FA5FC for ; Mon, 26 Jun 2006 22:29:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 67625-06 for ; Mon, 26 Jun 2006 22:28:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 2866C9FA2F7 for ; Mon, 26 Jun 2006 22:28:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5R1SpsJ027704; Mon, 26 Jun 2006 21:28:51 -0400 (EDT) To: Kyle Bateman cc: pgsql-sql@postgresql.org Subject: Re: permissions from system catalogs In-reply-to: <44A06E04.5000206@actarg.com> References: <44A06E04.5000206@actarg.com> Comments: In-reply-to Kyle Bateman message dated "Mon, 26 Jun 2006 17:30:12 -0600" Date: Mon, 26 Jun 2006 21:28:51 -0400 Message-ID: <27703.1151371731@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/277 X-Sequence-Number: 25513 Kyle Bateman 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