Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDTw2-0004ai-BN for pgsql-admin@arkaria.postgresql.org; Sat, 11 Nov 2017 11:26:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDTw1-0005Wn-MU for pgsql-admin@arkaria.postgresql.org; Sat, 11 Nov 2017 11:26:49 +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.84_2) (envelope-from ) id 1eDTw0-0005VW-SU for pgsql-admin@postgresql.org; Sat, 11 Nov 2017 11:26:49 +0000 Received: from truschnigg.info ([78.46.103.228]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eDTvt-0008RD-05 for pgsql-admin@postgresql.org; Sat, 11 Nov 2017 11:26:47 +0000 Received: from vault.lan (84-112-34-152.cable.dynamic.surfer.at [84.112.34.152]) (Authenticated sender: colo) by truschnigg.info (Postfix) with ESMTPSA id 59F98402C0; Sat, 11 Nov 2017 12:26:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=truschnigg.info; s=mail; t=1510399597; bh=lhGcNivRa7qlbZScBH2VIJXih39lZsXOcCEMscTqm3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kzIYZ8TosuU9ZHk7W8Sm9aR006ls1A+xsNeskmhQJwYr9faE58qdC66pkC2CcZNc6 aJsZM1ksCPaZIDFyjx533PN23JhxIKgZ5IRYOGFgfo0Ipz4T/YFlyjaqZcIono2kPC RklY55z7eLbIIK0xiwJDlhcrTnTBUw6HrRl8xyyE= Date: Sat, 11 Nov 2017 12:26:35 +0100 From: Johannes Truschnigg To: Debraj Manna Cc: pgsql-admin@postgresql.org Subject: Re: Upgrading postgres to 10 from 9.5 using pg_upgradecluster Message-ID: <20171111112635.2cao3tmhgfvylahk@vault.lan> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="beuhp5u7lif3w7vw" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --beuhp5u7lif3w7vw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Sat, Nov 11, 2017 at 08:02:19AM +0530, Debraj Manna wrote: > I am testing the process of upgrading postgres to 10 from 9.5 >=20 > [...] >=20 > Can someone let me know the following >=20 > 1. If there is a way I can check if the upgrade will be successful > before going for the actual upgrade? Before doing a release upgrade, we usually restore the latest backup of the cluster that's going to be upgraded to another host, and perform the planned upgrade procedure there. For the actual upgrade, we schedule a maintenance window, and repeaet the steps recorded during the successful test-run. This has the added benefit that you can have confidence in your recovery/restore process in case something goes awry. There's no other way I know of that "simulates" performing the actual upgra= de (pg_upgrade does some pre-flight checking before it actually starts doing work, but errors can still arise after the point of no return - which in "link" mode means that you'll have two broken clusters, and will have to restore from backup). > 2. If I am using the link option in the upgrade can I still use the su= do > pg_dropcluster 9.5 main? Yes. It's a very good idea to gather experience with the workflow in a test setu= p, just like you seem to be doing. You'll see that the procedure and tooling around upgrades is very robust - but with database administration, nothing beats a combination of diligent planning, carefulness, and experience. --=20 with best regards: - Johannes Truschnigg ( johannes@truschnigg.info ) www: https://johannes.truschnigg.info/ phone: +43 650 2 133337 xmpp: johannes@truschnigg.info Please do not bother me with HTML-email or attachments. Thank you. --beuhp5u7lif3w7vw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEGu9IhkI+7/aKLUWF95W3jMsYfLUFAloG3mUACgkQ95W3jMsY fLWbnA//R42k+P3F1L4utD+EcCt+bIxHyFGyq0kRnHfdlJA7RjY97DXG/6ERunoG WL88kj2Kjgvz7iLaX8hTa1sfJzHvK8DMXb7kkQrtttpzlDe2QXccc6n+1up44pr5 8U8NVzVouULkaRIvEhLxBtsTLcuikYUGO6aaNrGCxI70W1bMcApNCbSY4qK8SFPc O/ir3jYAX3M/t7A0HRC1/yg+9e8gCc3HAs8rxF0otYs7Fl3aOYqHxRUvTFMTCrLU O3MS5Ai8z9gYAQujlBvyuZuF5wty+X1jMmTe6hKQ6LBAecXOvGE2c1lPZQ0id+Ln HOL127gfTFfw5FkFL4A9+DKEJU3WjsiqwsUZUm/IbKXUNmTjaNYgc1DQybU4T4Wf ASaSE/zBGC7s2LH8hpjPd1VKBBA363JiHdEZmIPHle/1nvWdYJA+xmoKtMSJvemI X8dgE2UzASqjrdRjveILYMFygRlARMbOS0nFfA1WCmPVB9yVh7vvsNBy5lj1K8ba YujYIj6hLFDyYxVIcOqcj9/wwzOEajCwyboc5LWki9IUvRv3og9jfOLRcEbC3n2u 8MfBqQiQquAeLp8HkcCbrrN9hghYfHtyy7q8SvW7jUTbqdrvHMO9TmTKY0ru4CMA Us4xtoHUj2vtcCiA7sCflF/oTonLxpVm64n2/Ab0lawIiyv/Bgg= =CQe2 -----END PGP SIGNATURE----- --beuhp5u7lif3w7vw--