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 1j1VpE-0006yx-K0 for pgsql-general@arkaria.postgresql.org; Tue, 11 Feb 2020 13:43:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1VpA-0005HQ-Fy for pgsql-general@arkaria.postgresql.org; Tue, 11 Feb 2020 13:43:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1VpA-0005HJ-6d for pgsql-general@lists.postgresql.org; Tue, 11 Feb 2020 13:43:36 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1Vp7-0006fh-Lb for pgsql-general@postgresql.org; Tue, 11 Feb 2020 13:43:35 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 4BFCE2634B5 for ; Tue, 11 Feb 2020 05:43:31 -0800 (PST) Date: Tue, 11 Feb 2020 05:43:31 -0800 (PST) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Pre-version pg_upgrade syntax check In-Reply-To: <0b05d4ae-03f9-cdc7-f063-f38d08edca90@aklaver.com> Message-ID: References: <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com> <0b05d4ae-03f9-cdc7-f063-f38d08edca90@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, Adrian Klaver wrote: > So you already have 11 and 12 instances of Postgres running? Adrian, No. Both 11 and 12 are installed; neither is running. I have a cron job that runs pg_dumpall every weekday night. > If so why use pg_upgrade? Because I wanted to try it rather than use 'psql -f .sql' > To verify what is going on do: > /usr/lib64/postgresql/11/bin/psql --version The pg_upgrade page says to not have either the old or new versions running. > vi /var/lib/pgsql/11/data/PG_VERSION /var/lib/pgsql/11/data/PG_VERSION is 11; /var/lib/pgsql/12/data/PG_VERSION is 12. Rich