X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B540AD1B4A3 for ; Thu, 18 Dec 2003 01:31:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36849-04 for ; Wed, 17 Dec 2003 21:31:22 -0400 (AST) Received: from messenger.pointdx.com (messenger.pointdx.com [208.31.50.25]) by svr1.postgresql.org (Postfix) with ESMTP id E8B46D1B48B for ; Wed, 17 Dec 2003 21:31:18 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by messenger.pointdx.com (Postfix) with ESMTP id BE9842472B1 for ; Wed, 17 Dec 2003 20:31:18 -0500 (EST) Received: from messenger.pointdx.com ([127.0.0.1]) by localhost (messenger [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20108-07 for ; Wed, 17 Dec 2003 20:31:01 -0500 (EST) Received: from pointdx.com (chorus.pointdx.com [208.31.50.97]) by messenger.pointdx.com (Postfix) with ESMTP id 25912246E00 for ; Wed, 17 Dec 2003 20:31:01 -0500 (EST) Message-ID: <3FE07688.1010006@pointdx.com> Date: Wed, 17 Dec 2003 20:30:16 +0500 From: Michael Gill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Restrict access to system tables Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/275 X-Sequence-Number: 11781 Please pardon the novice question, but I can't find my answer in my books or the docs. I want to keep as much data and table structure hidden from users as possible. I have created a function to return data (using 'security definer') and revoked all rights to a table for a user. This user can now execute the function but not query the table directly... Great. BUT this same user can use PgAdmin III or psql to view the "schema" -- everything except seeing the data. Anyone have a suggestion as to how to limit a given user (a group preferably) to only executing functions created by an administrator???? Thanks