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 1j1IfD-0001cB-Hk for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:40:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1IfC-0006J2-A7 for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:40:26 +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 1j1IfB-0006Iv-Tc for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2020 23:40:26 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1If9-0007HC-O3 for pgsql-general@postgresql.org; Mon, 10 Feb 2020 23:40:24 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id A145F262F3A for ; Mon, 10 Feb 2020 15:40:22 -0800 (PST) Date: Mon, 10 Feb 2020 15:40:22 -0800 (PST) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Pre-version pg_upgrade syntax check In-Reply-To: Message-ID: References: <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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? Rich