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 1icWY9-0001sm-FF for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 15:26:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icWY7-0000Gf-Bk for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 15:26:43 +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 1icWY7-0000GM-19 for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 15:26:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icWY3-0000AE-Ur for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 15:26:42 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 66DFA22535; Wed, 4 Dec 2019 10:26:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 04 Dec 2019 10:26:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=hoxwRBCOUXmQZhgc7SVLKoaWd5u/hLnN2/J0k1v3u RY=; b=xYXnBqlfBekiLUG2z58SLsRjEt24WoGFzPfWR8aAiYs1ktFOEYufFzduH 9uxWHs/N8MzbysQVuxltn2XQA4DlDkYMDHsCdXaGkbYcJNlpkitCeswu6BgcQXxO xMBl8CGCC8J5hwVfukARQDeBSa2P6dxIVoywrCI/jVDPqTZapZfn0EP9yJrQrMvX 2Y9hj9tPyCrq5Dc77d/opHIut0+HvSZjydnL7vAWnFDt9IeNs0pSfr6tzcNlTL+1 E+OJ9UEGpueJw8QYM7d9p6ZIObkHLgToHtlO3+glZHYwv2kphUMwroVNgdJhIvzh SvGwBsD3ymVkbeFatut8cGc6EgIOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudejledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrudegjedrjeelnecurfgrrhgrmhepmhgrihhlfhhroh hmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomhen ucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 3ED0530600D2; Wed, 4 Dec 2019 10:26:36 -0500 (EST) Subject: Re: upgrade and migrate To: Laurenz Albe , Michael Paquier , Julie Nishimura References: <20191204044843.GD2381@paquier.xyz> <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> Cc: "pgsql-general@lists.postgresql.org" , pgsql-general From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <089b4bfb-9f92-d0f8-77ea-a59e49ed31a5@2ndquadrant.com> Date: Wed, 4 Dec 2019 16:26:33 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-12-04 08:56, Laurenz Albe wrote: > On Wed, 2019-12-04 at 13:48 +0900, Michael Paquier wrote: >> 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. > > Right, Slony is the way to go, since pg_upgrade doesn't support 8.3. Also consider Londiste. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services