Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foAfl-00005o-GT for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:53:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1foAfj-000704-Hl for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:53:55 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1foAfj-0006zx-Bc for pgsql-bugs@lists.postgresql.org; Fri, 10 Aug 2018 16:53:55 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1foAfg-0003rq-42 for pgsql-bugs@postgresql.org; Fri, 10 Aug 2018 16:53:54 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1foAfb-0008E4-71; Fri, 10 Aug 2018 12:53:47 -0400 Date: Fri, 10 Aug 2018 12:53:47 -0400 From: Bruce Momjian To: Michael Paquier Cc: DEGLAVE Remi , "pgsql-bugs@postgresql.org" Subject: Re: [PG_UPGRADE] 9.6 to 10.5 Message-ID: <20180810165347.GB7815@momjian.us> References: <20180810161245.GA7815@momjian.us> <20180810164240.GM13638@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810164240.GM13638@paquier.xyz> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Aug 10, 2018 at 06:42:40PM +0200, Michael Paquier wrote: > On Fri, Aug 10, 2018 at 12:12:45PM -0400, Bruce Momjian wrote: > > There is new code in PG 10.5 thta detects that the server is cleanly > > shut down. You can no longer use '-m immediate' to shut down either > > server, but 'smart' and 'fast' should be fine. Can you run > > pg_controldata on each cluster before you run pg_upgrade to verify that > > they say "Shutdown": > > You are talking about 244142d, right? I see this code bit: > + if (strcmp(p, "shut down\n") != 0) > + { > + if (cluster == &old_cluster) > + pg_fatal("The source cluster was not shut down cleanly.\n"); > + else > + pg_fatal("The target cluster was not shut down cleanly.\n"); > + } > > This seems incorrect for me in the case of standbys, as pg_controldata > reports in this case "shut down in recovery", and one can run pg_upgrade > on a standby as well, no? Oh, good point. I had not tested that. I can develop a patch to handle this. Was that the case in this upgrade report? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +