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 1iiKje-0006GX-4u for pgsql-general@arkaria.postgresql.org; Fri, 20 Dec 2019 16:02:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iiKjc-0000Aw-TW for pgsql-general@arkaria.postgresql.org; Fri, 20 Dec 2019 16:02:36 +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 1iiKjb-0000Ak-1b for pgsql-general@lists.postgresql.org; Fri, 20 Dec 2019 16:02:36 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiKjW-0001oQ-AG for pgsql-general@lists.postgresql.org; Fri, 20 Dec 2019 16:02:34 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B460D2236D; Fri, 20 Dec 2019 11:02:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 20 Dec 2019 11:02:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=7 euabX3GAfXmc88xYVQni/ECi9Wr8veLkSDcmFarh5w=; b=JjviVmA1aXqhOrc0M EYd5wuYBb6p4SuFfWDbjvq0KlJLb/3wesMr1Voc+XAH0RttxdsZ/XjpQJcCvRvwY 0GdtYzhpqj+ezaK9EtnGS1l/7GopyIYoPoqIe/n7ToCHNBDu4XX8xvATZXoDm76n N1JjrLyobHBLo8Lq0VWP4RVXDqu1ygp9ZY3VMDxT1S1m+lbm1K7Srwmz6TsiiUwf djPPgGNU0n/B0/tjZx0djbSSyoz1UAdh0M1ki1VcULQjxjK5z/anuPEMLiJB03IS 1gFyz5humrfw7UHUsbJPEV/MO9xe7c/csuIRHFd8YM2QGyrBU4QlUgbF4LukeIPH AyGiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=7euabX3GAfXmc88xYVQni/ECi9Wr8veLkSDcmFarh 5w=; b=QqU0EA7MYb6ldDMebO4c4w76I35bJrQtZJ5ScysqA24NFkHNBFgmjmGu+ 3p87qab5HpxKOgpaZoADZ6CUN3qW+8Y5yevkgAYmyrPTZJW5hoCdlh58S0QG7N3G 3UvQ6xS5XNad47ct9fR11eQgB8388IVIyavuyiCTzjwx4KwZC8je0BzgXeJ+rH+7 nt8aD66G910UNwK+dqJucgcF/W5N4Qm+E67AjT26/Sl8YJHK1D2RLMO+FAlot8pC bK1GVwtaVekGt42RLfX4xeEGTGyfpVMQjZicvZbJ7r4nxE+2blwr1TuUglfb04r9 iJebLugyC/SHLdPfOJ0LnmU2fUawg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddufedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehslhhonhihrdhinh hfohdpphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvdduvddruddvledrudel feenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklh grvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 9713730608F1; Fri, 20 Dec 2019 11:02:26 -0500 (EST) Subject: Re: Upgrading from PostgreSQL 9.3 to 11.6 To: tony@exquisiteimages.com, pgsql-general@lists.postgresql.org References: <26671fc46aec0cf809d9ea7665f7f6b8@exquisiteimages.com> From: Adrian Klaver Message-ID: Date: Fri, 20 Dec 2019 08:02:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <26671fc46aec0cf809d9ea7665f7f6b8@exquisiteimages.com> 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 12/20/19 5:58 AM, tony@exquisiteimages.com wrote: > I have a PostgreSQL 9.3 installation that I finally have time to migrate > to a currently supported version. The server that the installation is > installed on is also at its end of service. > > Can anyone help me with completing this conversion as securely and > efficiently as possible with the least amount of down time? Also, once > it has been converted over, is there any best practice for ensuring that > there has been no corruption? The choices off the top of my head: 1) pg_dump/pg_restore using the 11.6 binaries of both. 2) Using pg_upgrade(www.postgresql.org/docs/11/pgupgrade.html) from 11.6. 3) Setting up Slony(http://www.slony.info/). Downtime is hard to predict, especially if you have not done a procedure before. The simplest would be the dump/restore. I would go through the Release Notes for the first release of each major version 9.4, 9.5, 9.6 and 11 to check out any behavior changes that might trip you up. Given the number of versions you are stepping over setting up a test instance of 11.6 to do the upgrade against would be a good thing to do. > > The database is 600GB in size. We do not have any custom types being used. > > Thanks for any direction. > > > -- Adrian Klaver adrian.klaver@aklaver.com