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 1sKNLI-009qyj-Bs for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jun 2024 19:21:08 +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 1sKNLH-0007zB-2d for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jun 2024 19:21:07 +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 1sKNJO-0001tv-Lg for pgsql-hackers@lists.postgresql.org; Thu, 20 Jun 2024 19:19:10 +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 1sKMTW-002IA0-2p for pgsql-hackers@lists.postgresql.org; Thu, 20 Jun 2024 18:25:35 +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 45KIPTPX456714; Thu, 20 Jun 2024 14:25:29 -0400 From: Tom Lane To: Hannu Krosing cc: Daniel Gustafsson , Robert Haas , "David G. Johnston" , PostgreSQL Hackers , Stephen Frost , Andres Freund , Noah Misch Subject: Re: DROP OWNED BY fails to clean out pg_init_privs grants In-reply-to: References: <1745535.1712358659@sss.pgh.pa.us> <78CCD91B-99DC-4B0F-B65E-AD46E67CBC0B@yesql.se> <2857513.1713733688@sss.pgh.pa.us> <32556.1714165429@sss.pgh.pa.us> <378162.1714257933@sss.pgh.pa.us> <772627.1714330360@sss.pgh.pa.us> <33E80863-5516-45A1-93D1-00F1A166EC7C@yesql.se> <1372432.1714418108@sss.pgh.pa.us> <1562011.1714450202@sss.pgh.pa.us> <537173.1716505303@sss.pgh.pa.us> <651419.1716560400@sss.pgh.pa.us> <40B07EAD-E25E-45EF-8728-5F371A425F3C@yesql.se> <663760.1716566350@sss.pgh.pa.us> <685269.1716577052@sss.pgh.pa.us> <2597398.171840! 8781@sss.pgh.pa.us> <257E8269-AD8D-48E8-8F6C-714F1387A5AD@yesql.se> <3178658.1718636216@sss.pgh.pa.us> <89CB8F54-C188-46F0-8223-8B834838327B@yesql.se> <353165.1718897713@sss.pgh.pa.us> Comments: In-reply-to Hannu Krosing message dated "Thu, 20 Jun 2024 19:43:06 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <456712.1718907929.1@sss.pgh.pa.us> Date: Thu, 20 Jun 2024 14:25:29 -0400 Message-ID: <456713.1718907929@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hannu Krosing writes: > Or perhaps we should still also patch pg_dump to ignore the aclentries > which refer to roles that do not exist in the database ? I didn't want to do that before, and I still don't. Given that this issue has existed since pg_init_privs was invented (9.6) without prior reports, I don't think it's a big enough problem in practice to be worth taking extraordinary actions for. regards, tom lane