pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Pre-version pg_upgrade syntax check
Date: Mon, 10 Feb 2020 15:45:32 -0800
Message-ID: <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.2002101535311.4839@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2002101352320.32087@salmo.appl-ecosys.com>
	<03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com>
	<alpine.LNX.2.20.2002101529200.4839@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.2002101535311.4839@salmo.appl-ecosys.com>

On 2/10/20 3:40 PM, Rich Shepard wrote:
> On Mon, 10 Feb 2020, Rich Shepard wrote:
> 
>> Good advice; I'll do that.
> 
> Huh! Not what I expected:
> 
> postgres@salmo:~$ pg_upgrade -c -b /usr/lib64/postgresql/11/bin/ -B
> /usr/lib64/postgresql/12/bin/ -d /var/lib/pgsql/11/data -D
> /var/lib/pgsql/12/data/
> 
> (All on one line; wrapped by alpine.)
> 
> Performing Consistency Checks
> -----------------------------
> Checking cluster versions Old cluster data and binary directories are 
> from different major versions.
> Failure, exiting
> 
> Well, of course they're from different major versions, that's why I'm
> running pg_upgrade. What did I do incorrectly?

What it is saying is -b and -d are pointing at binary and data 
directories that are incompatible. You need to make sure that:

/usr/lib64/postgresql/11/bin/
and
/var/lib/pgsql/11/data

are actually pointing at 11 instances of binaries and data respectively.

> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (13+ messages)  latest in thread

Message-ID: <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com>
Permalink:  ../3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com/
Also on:    postgresql.org/message-id/3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Pre-version pg_upgrade syntax check
  In-Reply-To: <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com>
  References: <alpine.LNX.2.20.2002101352320.32087@salmo.appl-ecosys.com> <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> <alpine.LNX.2.20.2002101529200.4839@salmo.appl-ecosys.com> <alpine.LNX.2.20.2002101535311.4839@salmo.appl-ecosys.com> <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com>

* 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