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 1eqScW-0006Db-Nv for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:55:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqScV-00014w-1U for pgsql-general@arkaria.postgresql.org; Mon, 26 Feb 2018 23:55:47 +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 1eqScU-00014n-Hp for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2018 23:55:46 +0000 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eqScR-0003WL-6c for pgsql-general@lists.postgresql.org; Mon, 26 Feb 2018 23:55:45 +0000 Received: by mail-pg0-x229.google.com with SMTP id l24so6825544pgc.5 for ; Mon, 26 Feb 2018 15:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=eBuQKxupHHtvUYmg8d9wyd1qDq8E0WBNUzAyNbTU45k=; b=zRPtzLsoLo8BTgyl381ikZ0TDPLRzDIcXcGdZyyeqAPYfQdiFqCfLQFv2CRktHV9Y7 Lls87iHDypTKdjrz43EKKtadTJpAXNdcw18ik88TTtNNWCaYM6icj3B/6ptR/v9Pk7+t irkpUuYUq7sd3LCG3ozaxnCSDckEQNrkWJQMkrz094y4zpKMuiyvj+hor25dNARfLPc0 kR5ZvyJfOF27cCH3UYJS88S0XkqFpd5n4C81GSYLGwdl+fdRcxl3ZW7tgq2in/SS01SZ npfbWcTU6y5Rmkc0xFsty6zk8W8DuNCENpPSrLX2LwZx+oYhs1C6LIa8Ed3/A1LBmqzu SCXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eBuQKxupHHtvUYmg8d9wyd1qDq8E0WBNUzAyNbTU45k=; b=UbnntpsS9Wy90nkg/4E+Bf0Lka+MWXqyzwIkpIXfm6cOKXytvIwtCSDSbgu36qM91O bi+DPMbX9/Q6SOsn0BCNnBZU30Dc/5uYSGcm0SF0Szyji0XeYcfXd4zDMHW9Pk4pdwfz 0Eass0AQxlBCIuJg4dTy+FJciTsqzeo3UcqASfDEPQtgHkVuXxTf7NTd/GMYnBBabadv jKjtcRncu0M9mBKvWinc7N+rDHqpNRdydkKn3rcel1jRMfU1jQLImEwMGfYN3ewY8sje G36fusgiXC99dikch0hrMRwMi9p/Lef3wJuiQWGMBavvIJ+UsypPTAcl4aRJF28iPuIG eZ0A== X-Gm-Message-State: APf1xPCVitHmY12brtTZlsxE516zx9BH3ButU2bNQcGSenLvw/OCc9qj TYxjKNWZuenY7as1ABnP8UvqJ2rm X-Google-Smtp-Source: AH8x224zcC8X9ZvuMwXQdTbMpNp6/1+W11melyYTdwKeb3bN0p1hePDuCHqPj8Kbf1vujt+94XFKrg== X-Received: by 10.101.82.70 with SMTP id q6mr9625016pgp.67.1519689339841; Mon, 26 Feb 2018 15:55:39 -0800 (PST) Received: from [192.168.2.201] (static-50-53-109-254.bvtn.or.frontiernet.net. [50.53.109.254]) by smtp.googlemail.com with ESMTPSA id v14sm3913213pfi.8.2018.02.26.15.55.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 15:55:39 -0800 (PST) Subject: Re: system catalog permissions To: pgsql-general@lists.postgresql.org References: <3a8e96fa-29c5-c761-bf87-b5c811fe8867@propaas.com> <19827.1519688861@sss.pgh.pa.us> From: Paul Jungwirth Message-ID: Date: Mon, 26 Feb 2018 15:55:38 -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: <19827.1519688861@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/26/2018 03:47 PM, Tom Lane wrote: > 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. > 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. I'm sure this is what you meant, but you need to give them separate *clusters*, right? Even with separate databases you can still get a list of the other databases and other roles in the cluster. I would actually love to be mistaken but when I looked at it a year or two ago I couldn't find a way to lock that down (without breaking a lot of tools anyway). Thanks! -- Paul ~{:-) pj@illuminatedcomputing.com