Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6H1z-0000YT-S5 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Mar 2019 15:52:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6H1y-0002ys-Jy for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Mar 2019 15:51:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6H1y-0002yZ-9M for pgsql-hackers@lists.postgresql.org; Tue, 19 Mar 2019 15:51:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6H1v-0000FM-9h for pgsql-hackers@lists.postgresql.org; Tue, 19 Mar 2019 15:51:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2JFpog7013427; Tue, 19 Mar 2019 11:51:50 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org, Tomasz Szypowski Subject: Re: pg_upgrade version checking questions In-reply-to: References: <9328.1552952117@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Tue, 19 Mar 2019 16:16:12 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13425.1553010710.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Mar 2019 11:51:50 -0400 Message-ID: <13426.1553010710@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-03-19 00:35, Tom Lane wrote: >> 2. check_cluster_versions() insists that the target version be the >> same major version as pg_upgrade itself, but is that really good enough= ? >> As things stand, it looks like pg_upgrade 11.3 would happily use pg_dum= p >> 11.1, or vice versa. > I'd hesitate to tie this down too much. It's possible that either the > client or the server package cannot currently be upgraded because of > some other dependencies. In fact, a careful packager might as a result > of a change like this tie the client and server packages together with > an exact version match. This has the potential to make the global > dependency hell worse. I'm not really getting your point here. Packagers ordinarily tie those versions together anyway, I'd expect --- there's no upside to not doing so, and plenty of risk if one doesn't, because of exactly the sort of coordinated-changes hazard I'm talking about here. >> 3. Actually, I'm kind of wondering why pg_upgrade has a --new-bindir >> option at all, rather than just insisting on finding the new-version >> executables in the same directory it is in. This seems like, at best, >> a hangover from before it got into core. Even if you don't want to >> remove the option, we could surely provide a useful default setting >> based on find_my_exec. > Previously discussed here: > https://www.postgresql.org/message-id/flat/1304710184.28821.9.camel%40va= nquo.pezone.net > (Summary: right) Mmm. The point that a default is of no particular use to scripts is still valid. Shall we then remove the useless call to find_my_exec? regards, tom lane