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 1foB8U-0001fL-BG for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 17:23:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1foB8S-0002nX-9b for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 17:23:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foB8R-0002nQ-Vm for pgsql-bugs@lists.postgresql.org; Fri, 10 Aug 2018 17:23:36 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foB8P-0005cC-GS for pgsql-bugs@postgresql.org; Fri, 10 Aug 2018 17:23:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 51A442EF; Fri, 10 Aug 2018 13:23:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 10 Aug 2018 13:23:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=3zuggETKDTC2LOUrqUz/2jdIXArkfRhkTyTipNQua6A=; b=titXpS+C m2ID6+vdnu5/Vr5eevTLFGAtMXal2wYxgh/Sm3F81elzAyZxAuAzkEJHFfCOeOyM lu1w4BWmwEErJMP3cRz0FAbSCyYqkDwaoI6HGs5fxlKw429y5k6yAGF5ibNj7xDy fXebIp5lZjMBTwvsu2KFt6DiUwNVxDHuy6Gubd1DuGxDZzOKadnxJlgy9BBc8r+0 wLv89huYDzWlUmydOLailEewrIXjfnjN485y0YouQr3trOQIotfV/f6lbKMyq/pP diDgvAnmhhrB+quHhRx9RZpJssT+wZih1FrT1Ia1rzsgJ/oFLx0rLUkyxEjlebEA CratdAi2X2r69A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=3zuggETKDTC2LOUrqUz/2jdIXArkf RhkTyTipNQua6A=; b=CKWIFoVV+yAa8zKrlER6cwQtS+mz2i9TMCwlHEVT9A4OL jfefTqBwMbnvkYePYNoHVnJqPh56Ape2dzpIjgcZRNC1VNHWhKc8yNeMzHRq9TfG c7vXSLP/LVbLq3k+wGReeMoYx1SIa9K8laYR7YmwYer4OF8RVDOm5MIWTSV1UliU OH4J2zjZBSJq2Iarlsy7CRU/UgFd+35qNqUyEVRPSn+AwxS9EQXRogj08c3kkWHk rO4ESGaXZOx0c4sjdZejMVP25tDS6W9460tXBU9fJ6U1irgEI5Ys57lSymCtDCLU hJXWIFq24NoL5KZ2ibHR+Poywb9buT78U+7VaoHLw== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (lfbn-ann-1-147-30.w86-200.abo.wanadoo.fr [86.200.114.30]) by mail.messagingengine.com (Postfix) with ESMTPA id 04BCD10261; Fri, 10 Aug 2018 13:23:30 -0400 (EDT) Date: Fri, 10 Aug 2018 19:23:29 +0200 From: Michael Paquier To: Bruce Momjian Cc: DEGLAVE Remi , "pgsql-bugs@postgresql.org" Subject: Re: [PG_UPGRADE] 9.6 to 10.5 Message-ID: <20180810172329.GA22736@paquier.xyz> References: <20180810161245.GA7815@momjian.us> <20180810164240.GM13638@paquier.xyz> <20180810165347.GB7815@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <20180810165347.GB7815@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 10, 2018 at 12:53:47PM -0400, Bruce Momjian wrote: > Oh, good point. I had not tested that. I can develop a patch to handle > this. Was that the case in this upgrade report? I cannot say if this is the issue reported here for sure, but the OP has mentioned "clusters", which may point to the fact that he is trying to upgrade standby(s) as well. You need visibly a one-liner like that: --- a/src/bin/pg_upgrade/controldata.c +++ b/src/bin/pg_upgrade/controldata.c @@ -150,7 +150,8 @@ get_control_data(ClusterInfo *cluster, bool live_check) /* remove leading spaces */ while (*p == ' ') p++; - if (strcmp(p, "shut down\n") != 0) + if (strcmp(p, "shut down\n") != 0 && + strcmp(p, "shut down in recovery\n") != 0) { if (cluster == &old_cluster) pg_fatal("The source cluster was not shut down cleanly.\n"); I have not tested it though. -- Michael --FCuugMFkClbJLl1L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlttyhEACgkQnvQgOdby QH0wyw//bXK4PUYdDai5rxrJ1F25CeInlRutelQnQytGQy2mQaBpq75kMliGyhyB vghZi+Dskf6lLrrRefQ2qSg/KP4f9wZ8aGslrr+r16oHeVH5dcJekrlUH7iZA8Vu 9iPUhPbjt0FokBdRfYysouxLchShylZNykXZsumcNM3XqqfDVoU/lrdjd67x0qol 6c58b4zdX4WAeH0Yq6XGm6LaeUOFkafUYclcCxtCc32vtfm3woYdIKYyhpjZ20ee VmPILMonE0gUGdMkWWFNm6rYtQF9ZaiMY1SaS054YSZ1TzpC+uAx52IfY5mK/9gK u3yRmaObLmFYg+i4JZIlGZzfYBXXK9JZ9Ij2Ejaok4ZhOe/BdNbmlZf0iE+hhrnf uUgpxioPqPDgLadqXgO1vV0dEgbbKc7z6xXmYW+2pJsScTmvnvrixY+u0yUylG3g JLwD+YX2GV6wqM7KlxEvdHTqzIW0MH38nJPdH30HdkSPD7EtsjWgZOSfZ9t/FpTr 5UV5ELGVFadsYrHwINa8hjXKgm30lVT/gwU+uUxQI89/dIuWjOcsxgrgqZmt9Ppg dmmI/p0oW1WA1OylNDTyB5jN7HLm6mlnJWagtzLYMfRW4cXtcZDby9noGPhwWvFx n9JsV8E6zt3Bxys/sao9sPIUKYRi9YUTe5f8MkdnS/ynCwF2Ekk= =RZ2a -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--