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 1foAV6-0007yo-Rt for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:42: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 1foAV3-0001hF-No for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:42:53 +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 1foAV3-0001h8-Hq for pgsql-bugs@lists.postgresql.org; Fri, 10 Aug 2018 16:42:53 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foAUw-0003c6-QP for pgsql-bugs@postgresql.org; Fri, 10 Aug 2018 16:42:53 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1D1F8239; Fri, 10 Aug 2018 12:42:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 10 Aug 2018 12:42:44 -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=UYHVY+wKllFQPe1KDtnCKwIKym3wCUYxml/usNPUR4E=; b=XaxoakXU cqH+wChh17qMXuOZpw6umWaa2sJVAaQySt8irfmFz1qHp1bE5M1/OAglK6UmjwxU AuaGcJdpi5L49uL1WhyAE85s4tXl8xe+fPH5MGVZ2vuJwrHKDir/5pYtA5WcBb5g j9EtFNdWuIkXZckmVFe3gmRGGt79Ogd/Tf8VfNu9H9vUz3GEImgxcgUvcW7O6veD HLQHZNpUa2GC8WqQbnBwhsuyaI6Qfnzl4dJNv4KwVY/+nb/bff22fyghyVsD2KiY BonMTmi9IcIftx2TY8/hBH/WlNRgE0TowKCBJFrLtXpoATZlxY1I91jrXfh+XCQN /yhUTSUrPrFdkg== 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=UYHVY+wKllFQPe1KDtnCKwIKym3wC UYxml/usNPUR4E=; b=ifLfpMqyUA8TI12q2lhLcgkm5nFB72cP4NIEc0E8g9VnJ czb5fNthXMdGk5ACtdFpuScAatqxSwX7EVpxKskxJkXT14tb0m50Kw5SaRHVAUHE fn+CO2SCQomHG/nQFPmiV0R05CcBYc+h/OHOh6mYVF7JRmFxxamliqMl+qgBZe3W j1l2wP5nYbk4Kk0iS5YJRfoU2rOHhoeExpq9IqU56wf2WtVq79wdTylwIECsbQBB J/LCrytW4wstd7s4HgumZBM6+icnlrKaY5ZvlUxFcruQlI7CwLjF7kBMOkppkqn9 ec8F0YWBmgvN/mhZhH6jyvQbjc3m26fsxrmEnUDDg== 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 AC0A9E4563; Fri, 10 Aug 2018 12:42:42 -0400 (EDT) Date: Fri, 10 Aug 2018 18:42:40 +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: <20180810164240.GM13638@paquier.xyz> References: <20180810161245.GA7815@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+W7ryvxEk4RRyt+P" Content-Disposition: inline In-Reply-To: <20180810161245.GA7815@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --+W7ryvxEk4RRyt+P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? -- Michael --+W7ryvxEk4RRyt+P Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlttwIAACgkQnvQgOdby QH3O6Q/+OM46N8rj8aQhUn70zKndkUO4B+gp92H/ksyA23ns2S24tL6U0LsA60cW noZyD7pgbWTEhkF4zb5yahmu3oQ3SNy7tQSF42WuTIa7ccm/oQnCWun+3hMkl47p 18x8vmiWjcOGae9djvBs0EON1A5xxblheRTlVs6U/HPo21z4hUW0D7KJw/wQXjOd 571rVV4bcFqJz6l6TRUlsTSaLYYA+mjPkY+jTqbumzvZ2v6QGdMkHS0PLjIi3IGI 2rqPFe9JcKNtrEUTmhOLpczPU7G/0FGRk8KGh+dliOWXx8v+hwE4LKIaJYG+W6Az 36p8rGUChtnMXcopPQRQotRHA+2bgBqQXo/+vPitiNI/OxL974AZnqldQ4ATVuZy CVsK1G31BMGl6ySq2pVK6l2yLR/uXJWHvumTRdrfcW4ByZSqwCPolkcgW+Pwk0of lljEUJ0FltB9/9AnSF4XqtBzYoY84PMWAn2vwH4FRfi5oVo6c8vtX4G42kiWxl5N VM7F610Q6giAu9vEhVEvMIONUETLYxAYw6z238ANlAN9yy0RT9ftR4fqr5o8yKPr x+2BCHOCIwPlRW3HVA2z6RAJrXWUI/8ZVJZoQDv76lzT7+1r9jDydQwDLchULA27 hkrrVAxmcHcA+FVrNjSS0iLf2x7P3mm/jikL6wlh1z97v4D4b6I= =aW7G -----END PGP SIGNATURE----- --+W7ryvxEk4RRyt+P--