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 1vw5IH-001q9P-0z for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Feb 2026 21:22:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vw5IF-006vSs-1e for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Feb 2026 21:22:39 +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 1vw5IF-006vRF-0q for pgsql-bugs@lists.postgresql.org; Fri, 27 Feb 2026 21:22:39 +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 1vw5I6-00000001dDD-43qH for pgsql-bugs@lists.postgresql.org; Fri, 27 Feb 2026 21:22:34 +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 61RLMPvr1103273; Fri, 27 Feb 2026 16:22:25 -0500 From: Tom Lane To: Robert Haas cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , Virender Singla , pgsql-bugs@lists.postgresql.org, Aniket Jha Subject: Re: Major Version Upgrade failure due to orphan roles entries in catalog In-reply-to: <304751.1772045891@sss.pgh.pa.us> References: <202502131716.7mgkcnrem2hn@alvherre.pgsql> <2939991.1740089974@sss.pgh.pa.us> <179448.1772033773@sss.pgh.pa.us> <265501.1772038216@sss.pgh.pa.us> <296083.1772041154@sss.pgh.pa.us> <301798.1772044229@sss.pgh.pa.us> <304751.1772045891@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 25 Feb 2026 13:58:11 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1103271.1772227345.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 27 Feb 2026 16:22:25 -0500 Message-ID: <1103272.1772227345@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I'd be content to use those wordings (except I think our style > guide wants detail to be punctuated like a sentence). I'll wait > a day or so to see if anyone has a better idea, though. When I looked at the code more closely, I realized that it already doesn't dump grantors when dumping from pre-v16. I'm inclined to think that is an overreaction to the possible unreliability of the data (and from your comment upthread you might agree). But given the lack of complaints about it, let's leave that as-is for now. The immediate problem is that the code is allowing a null grantor to suppress the GRANT altogether, *even if it's not going to use the grantor*. Clearly that's silly. But if we're not going to use the grantor, let's skip trying to fetch it, which means we also don't need the info-level variant of the message. So I end with the attached draft patch. regards, tom lane #text/x-diff; name=3D"v1-clean-up-dumpRoleMembership.patch" [v1-clean-up-d= umpRoleMembership.patch] /home/tgl/pgsql/v1-clean-up-dumpRoleMembership.pa= tch