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 1luKex-0002Cx-DW for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Jun 2021 20:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luKev-0004b4-K9 for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Jun 2021 20:00:09 +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 1luKev-0004aI-DU for pgsql-bugs@lists.postgresql.org; Fri, 18 Jun 2021 20:00:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luKet-0000gR-Ar for pgsql-bugs@lists.postgresql.org; Fri, 18 Jun 2021 20:00:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15IK02eo1285335; Fri, 18 Jun 2021 16:00:03 -0400 From: Tom Lane To: Alvaro Herrera cc: Stephen Frost , Michael Paquier , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17062: Assert failed in RemoveRoleFromObjectPolicy() on DROP OWNED policy applied to duplicate role In-reply-to: <202106181925.x6ka3pktyblk@alvherre.pgsql> References: <202106181925.x6ka3pktyblk@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 18 Jun 2021 15:25:55 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1285333.1624046402.1@sss.pgh.pa.us> Date: Fri, 18 Jun 2021 16:00:02 -0400 Message-ID: <1285334.1624046402@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Could you just set the policy to be granted to "only the bootstrap > superuser" in that case? I mean as an implementation path for back > branches; use NONE going forward. That would make the policy allow > nobody who can't already access the record, instead of falling back to > PUBLIC -- which I agree seems suboptimal security-wise. That doesn't seem like a great solution --- it would produce very confusing output from pg_dump for instance. In fact, I think it breaks pg_dump for cases where the target DB has a different bootstrap superuser name. regards, tom lane