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 1icMau-0003rz-SR for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 04:48: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 1icMat-0006Ad-Ju for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 04:48: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1icMas-0006AQ-VM for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 04:48:55 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icMao-0003Gs-WC for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 04:48:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 54E0122711; Tue, 3 Dec 2019 23:48:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 03 Dec 2019 23:48:48 -0500 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=fm3; bh=QiBQVYAdk8bqDhYW6+dP/N5Ve1C Ugxun3dL0W4zU9us=; b=PuZXSm/av7Cdi6GlCreOLc1PbBMAjxRILTQBz/mcej9 Dz91cNk8W22oBIYuGkugB0sTc+BCKcfN8q0wCAEG15RWbFDI+SHZBDFmYT75on9a HDdT63DaFrigaN01Cjirj4mQoTO1ZDdmGUCPr8R0wZwOkzIhMoCD2uvma+/HR6DE aU8qrRcvxYFBpbZ4Ife22ddNuqcy7jN8F+kl8WGq3lAUtkTBJErER4sumnJXEhyL VnylMD31Lulh7EVDCyibLLf2qinNzU292z7vg8+NHBd0TO+Wdoxz/KDiTkpRvspP cGN3ijEccl7ZfgyqEZ0zcxD0s5b7va6PhJLZ2V9Rjbg== 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=fm1; bh=QiBQVY Adk8bqDhYW6+dP/N5Ve1CUgxun3dL0W4zU9us=; b=fZVjw5ggvrjzeEhd9Lqkct SAnw7cDZJ/CeDNqVyM5sCCBJxoloZ03PQzAxIu8DDWZA8t4lAbCL/BLh52uwn1Lu zKqR2ElsWaPdVzQgREX3nZyC66Dk7iZfFOQJZaTJlPIjPZx9TdQss3QJls8tBQI4 Ows8ycOhaj+wF+M6UrENjfAinH0I0OdiXIsFQBayS6LUYvXyn7g5K+BOKJkN1GzX IDlSGCfAK1gBgsw+bHKe/V0ABLcbF0tDJOPM3Zsn6WR+MOP5hYV8bcS3VbEzUo+g yFC2qo0wiQCFAnGN5w4+th90CdPqH7YZuhA+Y2Kyf8WPnj4CxtCbvrJswi/usA6Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudejkedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt 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 C2BDC30600E1; Tue, 3 Dec 2019 23:48:46 -0500 (EST) Date: Wed, 4 Dec 2019 13:48:43 +0900 From: Michael Paquier To: Julie Nishimura Cc: "pgsql-general@lists.postgresql.org" , pgsql-general Subject: Re: upgrade and migrate Message-ID: <20191204044843.GD2381@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wLAMOaPNJ0fu1fTG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --wLAMOaPNJ0fu1fTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 03, 2019 at 10:32:22PM +0000, Julie Nishimura wrote: > Hello, what is the best way to migrate from PostgreSQL 8.3.11 on > x86_64-redhat-linux-gnu to PostgreSQL 9.6.16 on x86_64-pc-linux-gnu > server, with minimal downtime? > The caveat is the source has about 80 databases overall almost 30 > TB. I could migrate the smallest ones (up to 1 tb) using pg_dump and > pg_restore, but the largest hot database is almost 17 tb, and I am > not sure how to approach this effort in a better and efficient way? pg_upgrade could be one way to go here. That's not the scale pg_dump would be very good at. I would have personally avoided using pg_dump above 10~20GB. Depending on the downtime you are ready to accept, a migration based on Slony could be something to investigate. -- Michael --wLAMOaPNJ0fu1fTG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3nOqsACgkQnvQgOdby QH0KEQ//bV/zmG9B98DEWUbgmsAVDVq2nMp1i52XPDRojcDktiP0uezqJL7HG3x9 4qeAhFkBy12gE6NqsRrwiitfFDZpx9HFtpdRmQd3yPlm9dwwS6/rysMFFxlmW8X0 XKBzLbH13E7EJgSCm+ek1RBqW4KoJH03dWelhd0e6FqaiWUaWyT97fYVumIW67Wd RDMDSfqSsWQPllXvTyS05+jJ8chxjjHsxCquMcK74YOUwezrZ2QhK+Oe03hIizNN /5oQzCYYfTObbpjGb1D7EQYZTmTFXl++y7SU7nu2IdaUreXqIny9An7/FJfjargq vGIpQ6Jivvd/Jx7z7OO9zHTwEGNmEGO2qbEEstgwMXV1GD3G82ZJS3LhEVS7XkAe Te1uzk4aNQ6FEVNMS7yZQjyJ825FWeLKSHWKGlrw6GbldpbfzoxOa0kcdpCYFfKv eUS9fgzz+hLJ2v0zrpIqoF+N7RkxeBEZKTxGfoZ3HUgs/bKAvvCD3UmUm35vO4I4 94aorpbP+p3cDNohHBr1GkahHKS1RoZkjTpukTEEC7mwzZJBTQjTT5wSnArSBtz5 sXuykBNDGdtYXelItXTtBVniye7RITtQAZ/e/dNUM/pZcUt7e/RgrJg3jIv+ZrjQ 3fN8ovD7wRoX/XED1YN5Wai4d9+/q1hpkbBI29auZmZCowlMk3E= =VxPF -----END PGP SIGNATURE----- --wLAMOaPNJ0fu1fTG--