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 1r15xS-009Hqp-TN for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Nov 2023 14:24:34 +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 1r15xR-00EmUj-17 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Nov 2023 14:24:33 +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 1r15xP-00EmTN-SB for pgsql-hackers@lists.postgresql.org; Thu, 09 Nov 2023 14:24:32 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r15xN-004ket-8E for pgsql-hackers@lists.postgresql.org; Thu, 09 Nov 2023 14:24:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A63FE3200B7D; Thu, 9 Nov 2023 09:24:26 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 09 Nov 2023 09:24:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699539866; x= 1699626266; bh=2Jxgp6gnHMof9s/NtvPu9xNl0ad3T+I11NPKyHAX46I=; b=Y ckonoTPLSKtXnBznsM7JoJiQJk4E6oelxiuDC3r9DAhAheVOPrhSqyC+Kr7KBXI/ V3daI1oUuqQWswNlE07p8sUEP+T6QRJmCPyqhmIC+EXN9a34PG25ZwO/TBVgGMbw mflwBmtzlddLrxIXuQPXnRxGrOJsb/dvbnJTJAizDozPKKiJz14Wkm9+ai/ysHNb OMkKmfELhhXaf1vdPA7wVwfShE1OyKBU/28tGdaZFeVV16DqLXZwae35vxxCGOeu W1YAT6zq+36F9AWpVbQdH/F6/mkfoJBmf2PrxBCT79RoUEGqXdAlzx+tLYLzABL2 pNxHT/8ZEqIWCQ+Yao6Ag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 09:24:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699539863; bh=ZjJU0xam/WzewrqOBbTVmuNbLPFG5fABk9FnHFmsZik=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=lVRaO4Jwi5HfWctfJ9HqPfVVhxmE0FUm/n72MLw9rSM2cJ7CNguD+AQuKpm6+ULeG u85u14CU1NPmNoSWJEU0Q1jwfCP5xzHakhCZIFQVlOBJpUW3syJPZGthG4sd/ghWgm SplkdK7BQSFGRpII8vfklzOnPJmXdv2GNdn4crAmvmBMdxSRR9gtVw/7V0icZfPxbL d5MiL0iyOVCCVf0bl64MLoKEd99qvypxhFGh6pn3u9WFvFAxuuTZhyBOsNzFstE3Qc HrJhMbkEONSWdzr5czEP2NYX/2TABcKi5kOUSr4c7B93V8BCKiBfK2KJdSWiStfWgY 2IDukn+I2M3/Q== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E55EBC1; Thu, 9 Nov 2023 15:24:23 +0100 (CET) Date: Thu, 9 Nov 2023 15:24:23 +0100 From: Alvaro Herrera To: Amit Kapila Cc: Kyotaro Horiguchi , smithpb2250@gmail.com, bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: A recent message added to pg_upgade Message-ID: <202311091424.s6dakq7zg5fl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-09, Amit Kapila wrote: > These comments appear mostly repetitive to what is already mentioned > in start_postmaster(). So, I have changed those referred to already > written comments, and slightly adjusted the comments at another place. > See attached. I'd still rather mention check_old_cluster_for_valid_slots() just above the Assert() in InvalidatePossiblyObsoleteSlot(). It looks too bare to me otherwise. > Personally, I don't see the need for a test for this, so removed the > same but can add it back if you or others think so. I'm neutral on having a test for this. I'm not sure this is easy to break unintentionally. OTOH the test is cheap, since it only has to run pg_upgrade itself and not, say, another initdb. On the (as Robert says) third hand, would we have tests for each possible GUC that we'd like not to be changed during pg_upgrade? I suspect not, which suggests we don't want this one either. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte" (Ijon Tichy en Viajes, Stanislaw Lem)