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 1haDvW-0006oA-KJ for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 06:37:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haDvV-0005r3-20 for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 06:37:05 +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 1haDvU-0005qw-Kn for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2019 06:37:04 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haDvN-0003IK-5t for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2019 06:37:04 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 808A221E; Mon, 10 Jun 2019 02:36:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 10 Jun 2019 02:36:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=4AvlimgdQDiRn5Lkdf4oPGi9jmb TY8HXSvRs+X9Ug54=; b=RMBaXGoghU/q3xolG8XVruv1uwEwyWssoOk96LPjgmq yYiqXhjU6kVtqtEVW35qexnkbJns1g8FeXEQcvill1Jx9E7XNFeY6a1pL7KBekD2 IXjI2E1em0Roa13JAJlbQHhivf13jlzd9htTgA3s5CY5nTKPtTOrbJHgDG80biUu VdiYDfG/kVk9s5cpcEd/K3OA1BdviRf/3hhaAj4NACsJ/LJ7PEDYvFN44feoAshr NQp2Bu1GF/bmtWH/UxcVQqALT3lZIvLp5ooIjlcB7NMuZtYvjGVoASs8yFkKUTxU jfJA9eL0JYFjQXLnB37pTTO5/RDliBgHy6Dnga5OriQ== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=4Avlim gdQDiRn5Lkdf4oPGi9jmbTY8HXSvRs+X9Ug54=; b=i5nwxANfbz8NxhPkSgQwy7 tPM6fyMDP2A430hoxoJK9EI6XwaZW0irDTW+p5DVvg9D514gE6dc/DRkFPmsNNoo 6LGgJZ/rnBHR22ac6EFb7ePRo3SnWMxP3FrhVDCdkzMDNVd8xsoNXQJyRpnOgtGO tfqKjcy+A+jR+x44vV1R8IdJKeh1GB/Z0eGB8Wvea8Fmf21ydA7+/hictU/sW0fe +3MtnMKCqXZfKkkAoCKN1xM1+cDwzJGXPi5nuUnqJr4rBBcA5bV8N717X4g0HVRD CxiSqaOUU4yYCPpl+TkHzD6w/HyKB/s8Ecci0Mx8TnL0gLZpma+584Af/UVPzWZA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehuddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tdejnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgr rhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id B0F7880061; Mon, 10 Jun 2019 02:36:52 -0400 (EDT) Date: Mon, 10 Jun 2019 15:36:50 +0900 From: Michael Paquier To: Achilleas Mantzios Cc: pgsql-general@lists.postgresql.org Subject: Re: Upgrade from PostgreSQL 9.6 to 11 Message-ID: <20190610063650.GF2199@paquier.xyz> References: <04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JI+G0+mN8WmwPnOn" Content-Disposition: inline In-Reply-To: <04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --JI+G0+mN8WmwPnOn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2019 at 09:00:38AM +0300, Achilleas Mantzios wrote: > On 10/6/19 7:36 =CF=80.=CE=BC., Pawan Sharma wrote: >> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL >> 11 instead of pg_upgrade. > > why not pg_upgrade ? If the size is near the 3TB mark as you say, > pg_upgrade is the fastest IMHO.=20 When it comes to upgrades, you could also look at logical replication. Unfortunately your origin version cannot do that. Have you looked at things like BDR or Slony? They are logical-based, meaning a lower downtime than pg_upgrade, but they take longer. For 3TB pg_upgrade can also be very fast if you use --link. Be wary of having backups though, all the time. -- Michael --JI+G0+mN8WmwPnOn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlz9+oIACgkQnvQgOdby QH3Fbw//Xidfzsivb5BQjKh9tiZqe2OXtStyvIDTKmJ1t7w+VhYSO5LBGMogeSnc a5EL6ZIdvqeNuLcQbYEACMbJxYYA/7z6aiBg3EczJPH52ilyfpOj+ffvAAWDm2XQ WfUxf4hYMoaVjN3Rl5YIx9E5EKxJs6TIJJYPNVlVC3s9gRvWCvfmqGaEDxaQ4G5X IW2b+G+6UXG0c+HIRu65KxEADH5SNcaEHGNnez8aG5py3z8dAhBnAi5bq0K7XQSi N+FcNJ4uVP5AoWJaUEHA6amlheQPAnRrM7M4s3mXazdErBDp7gxwpbwcKxUv86yM thgklPs87wMnMpBdUbQ5w6ZnI71xhNlVyizKhoaTKkb6UAZm9Z2bEDW/TGbxy11T VPoGLzq8ApPTgd6hPsnhnIBUF1ApjR9UBqafHsNKGj56oXrKXyCB1zzVrjEecF3S XssO5HPrvqvPa8buuAW0rlDygWXURR7Qo8UtoIxheoN/IEx0peuR2SbSz5MYxe0P b68J+rsY66QVG0x7SgbjJSqZx1l5GQjySOPasCt/I01wJev0JAM5I45Ec6KddjQW vW9ReajNlcFdTgzY2ufm5iQ+xmjnCWtI4tJGnRLTLI4kTh6E8tO3pcCe4HIzPHHb y9j+a9OnpLHIPEbLLJN0slDZSHSFatrwQko/PTpJynB3G3L77e8= =zp5+ -----END PGP SIGNATURE----- --JI+G0+mN8WmwPnOn--