pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <daniel@yesql.se>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pg_upgrade: Check version of target cluster binaries
Date: Thu, 4 Mar 2021 09:32:23 +0100
Message-ID: <851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se> (raw)
In-Reply-To: <77730672-d721-d4e9-5e3e-4c6614ac37fe@eisentraut.org>
References: <E1lHNKN-0005IC-V6@gemulon.postgresql.org>
	<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>

> On 4 Mar 2021, at 08:24, Peter Eisentraut <peter@eisentraut.org> 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/






view thread (7+ messages)

Message-ID: <851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se>
Permalink:  ../851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se/
Also on:    postgresql.org/message-id/851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: daniel@yesql.se, peter@eisentraut.org, tgl@sss.pgh.pa.us, andrew@dunslane.net
  Subject: Re: pgsql: pg_upgrade: Check version of target cluster binaries
  In-Reply-To: <851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se>
  References: <E1lHNKN-0005IC-V6@gemulon.postgresql.org> <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> <851B64C2-C162-4856-9391-3AA15196E4CE@yesql.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox