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 1lHbVw-00033j-7g for pgsql-committers@arkaria.postgresql.org; Thu, 04 Mar 2021 00:06:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHbVt-0007L6-Qg for pgsql-committers@arkaria.postgresql.org; Thu, 04 Mar 2021 00:06:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHbVt-0007Kz-LH for pgsql-committers@lists.postgresql.org; Thu, 04 Mar 2021 00:06:45 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHbVq-0006BK-D1 for pgsql-committers@lists.postgresql.org; Thu, 04 Mar 2021 00:06:44 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 66A9D1A911FB for ; Thu, 4 Mar 2021 01:06:38 +0100 (CET) Received: from s500.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 478402E270A5; Thu, 4 Mar 2021 01:06:38 +0100 (CET) Received: from s470.loopia.se (unknown [172.22.191.5]) by s500.loopia.se (Postfix) with ESMTP id 3F77E1E26548; Thu, 4 Mar 2021 01:06:38 +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.5]) by s470.loopia.se (s470.loopia.se [172.22.190.10]) (amavisd-new, port 10024) with LMTP id vT6GXmGvV9Vk; Thu, 4 Mar 2021 01:06:37 +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 4A9651CE59E2; Thu, 4 Mar 2021 01:06:37 +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: <1249994.1614809081@sss.pgh.pa.us> Date: Thu, 4 Mar 2021 01:06:36 +0100 Cc: Andrew Dunstan , Peter Eisentraut , pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <9AB1BC9C-DEEC-414E-9A86-060D409C14FC@yesql.se> References: <1208787.1614803332@sss.pgh.pa.us> <9df301a8-78bf-7fe4-c6bb-22ef7727385c@dunslane.net> <1249994.1614809081@sss.pgh.pa.us> To: Tom Lane 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 3 Mar 2021, at 23:04, Tom Lane wrote: >=20 > Andrew Dunstan writes: >> On 3/3/21 3:28 PM, Tom Lane wrote: >>> Crake says this patch broke its cross-version upgrade tests: >=20 >> The log says: >> check for >> = "/home/andrew/bf/root/upgrade.crake/REL9_2_STABLE/inst/bin/postgres" >> failed: incorrect version: found "postgres (PostgreSQL) 9.2.24", >> expected "postgres (PostgreSQL) 14devel" >> But that makes no sense at all. Looks like we're confusing the source = and the target. >=20 > On looking closer, I think the patch is just several bricks shy of a > load. It's applying validate_exec (which insists on a match to its > own version number) to *both* the source and target binaries. It > must not check the source that way. It's much to late to focus here at the moment, I will take a look in the morning unless beaten to it. -- Daniel Gustafsson https://vmware.com/