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 1svHoO-00DoMC-Gi for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Sep 2024 14:55:45 +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 1svHoN-001RoX-Lt for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Sep 2024 14:55:43 +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.94.2) (envelope-from ) id 1svHoN-001Rnv-CM for pgsql-hackers@lists.postgresql.org; Mon, 30 Sep 2024 14:55:43 +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.94.2) (envelope-from ) id 1svHoJ-001rB8-Nu for pgsql-hackers@postgresql.org; Mon, 30 Sep 2024 14:55:42 +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 48UEtdkJ1455757; Mon, 30 Sep 2024 10:55:39 -0400 From: Tom Lane To: Nathan Bossart cc: Thomas Krennwallner , pgsql-hackers@postgresql.org Subject: Re: pg_upgrade check for invalid databases In-reply-to: References: Comments: In-reply-to Nathan Bossart message dated "Mon, 30 Sep 2024 10:12:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1455755.1727708139.1@sss.pgh.pa.us> Date: Mon, 30 Sep 2024 10:55:39 -0400 Message-ID: <1455756.1727708139@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Should we have pg_upgrade skip invalid databases? If the only valid action > is to drop them, IMHO it seems unnecessary to require users to manually > drop them before retrying pg_upgrade. I was thinking the same. But I wonder if there is any chance of losing data that could be recoverable. It feels like this should not be a default behavior. TBH I'm not finding anything very much wrong with the current behavior... this has to be a rare situation, do we need to add debatable behavior to make it easier? regards, tom lane