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 1vvIr2-00CnrA-0Q for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Feb 2026 17:39:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvIr1-007vZH-0I for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Feb 2026 17:39:19 +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.96) (envelope-from ) id 1vvIr0-007vZ1-2l for pgsql-bugs@lists.postgresql.org; Wed, 25 Feb 2026 17:39:18 +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.98.2) (envelope-from ) id 1vvIqx-000000019bj-3KgF for pgsql-bugs@lists.postgresql.org; Wed, 25 Feb 2026 17:39:18 +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 61PHdERr296084; Wed, 25 Feb 2026 12:39:14 -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: References: <202502131716.7mgkcnrem2hn@alvherre.pgsql> <2939991.1740089974@sss.pgh.pa.us> <179448.1772033773@sss.pgh.pa.us> <265501.1772038216@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 25 Feb 2026 12:33:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <296082.1772041154.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 25 Feb 2026 12:39:14 -0500 Message-ID: <296083.1772041154@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Wed, Feb 25, 2026 at 11:50 AM Tom Lane wrote: >> If you're good with pg_dumpall producing a warning and then emitting >> the GRANT with no grantor clause, I will go make that happen. > Well, I guess I don't really see why there should be a warning. Because the result of the restore will not match how things were in the source database? True, we do not have any way to make them match, but that doesn't mean that pg_dumpall has fulfilled all expectations. > Now, if you go and do as you propose here, and adjust the code so that > the grant is dumped but a warning is produced, my fear is that someone > upgrading from v15- to v16+ will see that warning and think that there > is a problem with their database that needs fixing. On the other hand, if we produce no warning and yet the restored DB is unlike the original, that could also be cause for concern. > Moreover, we'll emit essentially the same warning for the member case, > where the warning does point to a problem that someone might want to > think about correcting, and exactly the same warning against a v16+ > database where it indicates that something has actually gone wrong. That's a fair point, but maybe it could be addressed by phrasing the message differently for the different cases. regards, tom lane