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 1j1IW3-0001Pn-6H for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:30:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1IW1-0007l0-AB for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:30:57 +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 1j1IW0-0007es-WA for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2020 23:30:57 +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 1j1IVx-00082t-LQ for pgsql-general@postgresql.org; Mon, 10 Feb 2020 23:30:56 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 7BF1B262F3A for ; Mon, 10 Feb 2020 15:30:51 -0800 (PST) Date: Mon, 10 Feb 2020 15:30:51 -0800 (PST) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Pre-version pg_upgrade syntax check In-Reply-To: <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> 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, Adrian Klaver wrote: >> I don't know that the port numbers are required. > They are not: https://www.postgresql.org/docs/12/pgupgrade.html > "Obviously, no one should be accessing the clusters during the upgrade. > pg_upgrade defaults to running servers on port 50432 to avoid unintended > client connections. You can use the same port number for both clusters > when doing an upgrade because the old and new clusters will not be running > at the same time. However, when checking an old running server, the old > and new port numbers must be different." Adrian, As I'm the only user of the databases, and both are shut down, I assumed specifying port numbers was not needed. >> Have I missed an option? > Not a required one. Best way to find out is to run --check. Good advice; I'll do that. Thanks, Rich