Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k48P3-0003Pm-9Y for pgsql-general@arkaria.postgresql.org; Fri, 07 Aug 2020 19:51:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k48P2-0004vs-7B for pgsql-general@arkaria.postgresql.org; Fri, 07 Aug 2020 19:51:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k48P1-0004vl-Vm for pgsql-general@lists.postgresql.org; Fri, 07 Aug 2020 19:51:43 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k48Oz-0008Dw-4J for pgsql-general@lists.postgresql.org; Fri, 07 Aug 2020 19:51:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 37BEC21E68; Fri, 7 Aug 2020 19:51:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XZ4jCq5tpF-y; Fri, 7 Aug 2020 19:51:38 +0000 (UTC) Received: from shr-macbook-pro.local (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 189FE23600; Fri, 7 Aug 2020 19:51:34 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: privileges oddity From: Scott Ribe In-Reply-To: <2795205.1596828723@sss.pgh.pa.us> Date: Fri, 7 Aug 2020 13:51:34 -0600 Cc: Adrian Klaver , PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: <999BA1C4-FBF8-4EE1-B866-67AD3B500116@elevated-dev.com> References: <20200806185329.GC29590@tamriel.snowman.net> <75f2f28c-9121-c3d0-0c9a-f9b16ef337fb@aklaver.com> <3DF00E97-6D2F-4329-AA0E-9CC2CCD41A8E@elevated-dev.com> <1ceb2a2f-50a0-ef7c-1849-6fa75dd61d64@aklaver.com> <5AA78DA8-746A-4407-AC00-B1463451CAD0@elevated-dev.com> <7efe4d40-5f8d-f3bb-45ff-fd00f3beba84@aklaver.com> <140C61E1-282D-42C2-8349-B5D11792DFCE@elevated-dev.com> <2793218.1596825900@sss.pgh.pa.us> <99994f76-5a45-09a1-c6e3-4021cb4bd385@aklaver.com> <997A0678-B203-432F-AF7D-7ADB6415C28A@elevated-dev.com> <2795205.1596828723@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Aug 7, 2020, at 1:32 PM, Tom Lane wrote: >=20 > Yes, you are. It looks like what you actually issued is >=20 > ALTER USER akanzler SET role confidential_read_only; >=20 > but that would have the effect that subsequent session starts would > automatically do "SET ROLE confidential_read_only". AHA! This is the correct answer, and it is solved now. I *know* I executed grant role properly--it's right there in the script. However, I think that SET ROLE had been accidentally misused instead of = GRANT at some point in the past, *AND* that the role contained = privs to the user-specific schemas when it should not have. So revoking = all privs from the role and adding back the proper ones resulted in = inadvertently removing privs from users who'd properly had them = explicitly granted. (I've never even used SET ROLE and was unaware you could even do that!) Anyway, thanks a million for being patient and sticking with this.=