Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqSR8-0005az-UC for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:44:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqSR6-0006sQ-Ha for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:44:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqSR6-0006sF-9K for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2018 23:44:00 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqSR1-0006tl-Hp for pgsql-general@postgresql.org; Mon, 26 Feb 2018 23:43:59 +0000 Received: from [192.168.50.9] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 52A996F8; Mon, 26 Feb 2018 15:43:50 -0800 (PST) Received: from c-73-221-208-9.hsd1.wa.comcast.net ([73.221.208.9] helo=[192.168.50.9]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 26 Feb 2018 15:43:49 -0800 Subject: Re: system catalog permissions To: PropAAS DBA , pgsql-general@postgresql.org References: <3a8e96fa-29c5-c761-bf87-b5c811fe8867@propaas.com> From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: Date: Mon, 26 Feb 2018 15:43:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <3a8e96fa-29c5-c761-bf87-b5c811fe8867@propaas.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-88630-05910 X-Assp-Session: 7F90C1C74128 (mail 1) X-Assp-Original-Subject: Re: system catalog permissions X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/26/2018 03:11 PM, PropAAS DBA wrote: > All; > > > We have a client which is segmenting their multi-tenant cluster > (PostgreSQL 9.6) by schema, however if one of their clients connects > via pgadmin they see ALL schemas, even the ones they don't have access > to read. I assume pgadmin is pulling the list from the system catalogs. > > > What's the right/best practice approach? revoke all from public on > specific system catalog tables? Which tables? AFAIK, you can not hide the list of schemas but you can prevent people from entering them. JD > > > Thanks in advance > > -- Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc PostgreSQL centered full stack support, consulting and development. Advocate: @amplifypostgres || Learn: https://postgresconf.org ***** Unless otherwise stated, opinions are my own. *****