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 1lHZbs-000655-G2 for pgsql-committers@arkaria.postgresql.org; Wed, 03 Mar 2021 22:04: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 1lHZbr-0001qP-DR for pgsql-committers@arkaria.postgresql.org; Wed, 03 Mar 2021 22:04:47 +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 1lHZbr-0001qI-7s for pgsql-committers@lists.postgresql.org; Wed, 03 Mar 2021 22:04:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHZbp-0003GO-8e for pgsql-committers@lists.postgresql.org; Wed, 03 Mar 2021 22:04:46 +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 123M4f7I1249995; Wed, 3 Mar 2021 17:04:41 -0500 From: Tom Lane To: Andrew Dunstan cc: Peter Eisentraut , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pg_upgrade: Check version of target cluster binaries In-reply-to: <9df301a8-78bf-7fe4-c6bb-22ef7727385c@dunslane.net> References: <1208787.1614803332@sss.pgh.pa.us> <9df301a8-78bf-7fe4-c6bb-22ef7727385c@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Wed, 03 Mar 2021 16:58:09 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1249993.1614809081.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 03 Mar 2021 17:04:41 -0500 Message-ID: <1249994.1614809081@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 3/3/21 3:28 PM, Tom Lane wrote: >> Crake says this patch broke its cross-version upgrade tests: > 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 an= d the target. 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. regards, tom lane