Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sn054-000Jl1-J3 for pgsql-bugs@arkaria.postgresql.org; Sat, 07 Sep 2024 18:22:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sn045-0026wP-UN for pgsql-bugs@arkaria.postgresql.org; Sat, 07 Sep 2024 18:21:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sn045-0026wG-Ll for pgsql-bugs@lists.postgresql.org; Sat, 07 Sep 2024 18:21:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sn03y-0001ZJ-V1 for pgsql-bugs@lists.postgresql.org; Sat, 07 Sep 2024 18:21:40 +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 487ILXxl2522014; Sat, 7 Sep 2024 14:21:33 -0400 From: Tom Lane To: Basha cc: Christophe Pettus , Joe Conway , PostgreSQL Bug List Subject: Re: [EXT]: Re: BUG #18604: Regression in PostgreSQL 16.4: pg_dump Prevents Essential System Table Modifications In-reply-to: References: <18604-04d64b68e981ced6@postgresql.org> <3B462E2E-88B6-43B9-943F-90E883D33357@thebuild.com> <183A6734-06B2-48E9-A5C9-235EF87B0DFB@thebuild.com> <6860E1BC-DA5A-4576-9FB6-35ED31E6F017@thebuild.com> <73AD2F56-1009-49C7-8752-39C45325A9BB@thebuild.com> <01CF2C94-D153-4687-B2EF-EF4B4B1890DF@thebuild.com> <2410942.1725675471@sss.pgh.pa.us> <8D1E6C08-1C4B-4056-846F-C33C0056249E@thebuild.com> <172a934d-6a5d-4c57-9935-43862025b842@joeconway.com> <2503009.1725722934@sss.pgh.pa.us> <2514770.1725729411@sss.pgh.pa.us> <831E0C7F-4E37-45F9-AA05-04648077FD8D@thebuild.com> Comments: In-reply-to Basha message dated "Sat, 07 Sep 2024 17:51:08 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2522012.1725733293.1@sss.pgh.pa.us> Date: Sat, 07 Sep 2024 14:21:33 -0400 Message-ID: <2522013.1725733293@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Basha writes: > The fix in PG16.4, entirely prevents changes to pg_database, Is > there any possibility of a more targeted approach. If we allow pg_database to be replaced by a view, we have the same hazard that the security patch means to fix: namely that the view might be hostile, or even just that it might innocently lie to us resulting in incorrect pg_dump output. I'm uninterested in poking a hole in that security defense. I don't think we've ended the discussion on whether to remove the check that's preventing using RLS instead. But even if we choose to do that, you're still depending on something that's not supported and might break again in future. To be absolutely clear: *nothing* you might use allow_system_table_mods to do is considered supported for production purposes, and we will not apologize for breaking it. You really ought to think about how badly do you need to hide the existence of other databases. It seems like a mighty low-priority requirement from here, especially if you can't also hide the existence of other roles. regards, tom lane