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 1eqSUl-0005nY-0a for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqSUj-0002wO-IV for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:47:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqSUj-0002v5-7D for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2018 23:47:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqSUg-0003KW-Io for pgsql-general@postgresql.org; Mon, 26 Feb 2018 23:47:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1QNlf3N019828; Mon, 26 Feb 2018 18:47:41 -0500 From: Tom Lane To: PropAAS DBA cc: pgsql-general@postgresql.org Subject: Re: system catalog permissions In-reply-to: <3a8e96fa-29c5-c761-bf87-b5c811fe8867@propaas.com> References: <3a8e96fa-29c5-c761-bf87-b5c811fe8867@propaas.com> Comments: In-reply-to PropAAS DBA message dated "Mon, 26 Feb 2018 16:11:23 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19826.1519688861.1@sss.pgh.pa.us> Date: Mon, 26 Feb 2018 18:47:41 -0500 Message-ID: <19827.1519688861@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PropAAS DBA writes: > 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? Messing with the system catalog permissions is likely to break stuff you'd rather not break. PG generally doesn't assume that anything in the system catalogs is sensitive. If you don't want user A looking at user B's catalog entries, give them separate databases, not just separate schemas. regards, tom lane