Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHjPO-0006It-VS for pgsql-committers@arkaria.postgresql.org; Thu, 04 Mar 2021 08:32:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHjPN-00017b-I8 for pgsql-committers@arkaria.postgresql.org; Thu, 04 Mar 2021 08:32:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHjPN-00017T-CB for pgsql-committers@lists.postgresql.org; Thu, 04 Mar 2021 08:32:33 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHjPH-0001JC-FU for pgsql-committers@lists.postgresql.org; Thu, 04 Mar 2021 08:32:32 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id BAAA110CD6FF for ; Thu, 4 Mar 2021 09:32:24 +0100 (CET) Received: from s645.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 9B5BF2E272D1; Thu, 4 Mar 2021 09:32:24 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.6]) by s645.loopia.se (Postfix) with ESMTP id 8C2B71579F2B; Thu, 4 Mar 2021 09:32:24 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s499.loopia.se ([172.22.191.6]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id kJfE9bZpC658; Thu, 4 Mar 2021 09:32:24 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.43] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s499.loopia.se (Postfix) with ESMTPSA id F108E1CE6270; Thu, 4 Mar 2021 09:32:23 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: pgsql: pg_upgrade: Check version of target cluster binaries From: Daniel Gustafsson In-Reply-To: <77730672-d721-d4e9-5e3e-4c6614ac37fe@eisentraut.org> Date: Thu, 4 Mar 2021 09:32:23 +0100 Cc: Tom Lane , Andrew Dunstan , pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se> References: <1208787.1614803332@sss.pgh.pa.us> <9df301a8-78bf-7fe4-c6bb-22ef7727385c@dunslane.net> <1249994.1614809081@sss.pgh.pa.us> <9AB1BC9C-DEEC-414E-9A86-060D409C14FC@yesql.se> <77730672-d721-d4e9-5e3e-4c6614ac37fe@eisentraut.org> To: Peter Eisentraut X-Mailer: Apple Mail (2.3445.104.17) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 4 Mar 2021, at 08:24, Peter Eisentraut = wrote: > I think the attached would be a sensible fix. That's pretty much what I ended up with as well. I was first looking at checking the version of the binary against the major_version_str in ClusterInfo by passing down cluster instead, but = that turns into chicken-and-egg since we don't set the extracted version = until we've checked that pg_ctl exists and works. Thanks! -- Daniel Gustafsson https://vmware.com/