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.96) (envelope-from ) id 1wckWN-003az3-28 for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jun 2026 13:53:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wckWM-006Dvx-1j for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jun 2026 13:53:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wckWM-006Dvo-0u for pgsql-bugs@lists.postgresql.org; Thu, 25 Jun 2026 13:53:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wckWJ-00000000Ctt-3cEA for pgsql-bugs@lists.postgresql.org; Thu, 25 Jun 2026 13:53:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 65PDrPUG1082330; Thu, 25 Jun 2026 09:53:25 -0400 From: Tom Lane To: =?UTF-8?Q?H=C3=BCseyin_Demir?= cc: Laurenz Albe , Greg Sabino Mullane , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table In-reply-to: References: <19483-80de42dc4e62cfd6@postgresql.org> <104812.1780847519@sss.pgh.pa.us> <5184088806e70ed5db7e83bd6540a016b3802c1d.camel@cybertec.at> <0d7531c192859057c6aad54c89a8d453376bd00c.camel@cybertec.at> <592839.1782153054@sss.pgh.pa.us> <103! 0965.1782313078@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?Q?H=C3=BCseyin_Demir?= message dated "Thu, 25 Jun 2026 09:55:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1082328.1782395605.1@sss.pgh.pa.us> Date: Thu, 25 Jun 2026 09:53:25 -0400 Message-ID: <1082329.1782395605@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?UTF-8?Q?H=C3=BCseyin_Demir?= writes: >> An alternative answer is to back-patch the putid() fix and teach >> dumputils.c to consider the server minor version when deciding whether >> to reject unquoted all-numeric roles. We don't typically make pg_dump >> pay attention to minor versions, but it would provide a pathway for >> users to deal with this problem: if you've got dangling grants then >> update the old server before dumping. > It will require an almost mandatory minor-version update prior to the > upgrade, which adds extra friction and a more complex upgrade story > for our users since both sides need to be updated. Only if you actually have dangling ACL references, which I think is the case for a vanishingly small set of users --- otherwise we'd have heard more complaints and been motivated to fix this long ago. Let's not optimize for the broken case. regards, tom lane