Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3B0C01337BA6 for ; Thu, 10 Mar 2011 13:35:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 72615-02 for ; Thu, 10 Mar 2011 17:35:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailgate.iii.com (mailgate.iii.com [205.227.88.3]) by mail.postgresql.org (Postfix) with ESMTP id 8B2621337B97 for ; Thu, 10 Mar 2011 13:35:35 -0400 (AST) Received: from mailhub.iii.com (mailhub [10.1.2.3]) by mailgate.iii.com (8.13.6/8.13.6) with ESMTP id p2AHRKUZ007324 for ; Thu, 10 Mar 2011 09:27:20 -0800 (PST) Received: from [10.1.7.210] ([10.1.7.210]) by mailhub.iii.com (8.13.6/8.13.6) with ESMTP id p2AHd1i0010638 for ; Thu, 10 Mar 2011 09:39:01 -0800 (PST) Message-ID: <4D790C0F.3080100@iii.com> Date: Thu, 10 Mar 2011 09:36:15 -0800 From: Dinesh Bhandary Reply-To: dbhandary@iii.com Organization: Innovative Interfaces User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: hiding metadata information from a user References: <4D781A21.8030109@iii.com> In-Reply-To: <4D781A21.8030109@iii.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/127 X-Sequence-Number: 36999 It is a follow up to my first question. I am still interested in knowing if we can create a pure read only user in postgres, which has no access to system catalogs. The alternative I am thinking is using a separate instance and use dblink or replication tool to refresh data. Do you know if we can hide connection details from a user if we use dblink? I just want to make sure this read only user does not go and query our system catalogs in production server. Dblink should be easier to implement than using replication tool. Thanks. Dinesh On 3/9/2011 4:24 PM, Dinesh Bhandary wrote: > Hi All - > > Please let me know if this is possible to do in postgres. > > I am creating a read only user, which has limited access to db > objects, primarily views. Even though this user can't query data from > other db objects it can view the system catalog using pg* views and > tables, thereby exposing our logical schema. > Is there a way in postgres to limit access to system catalogs. I just > want a pure read only user, which can do nothing but query specific > views we outlined. > > Thanks! > Dinesh >