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 1idH0R-0000id-AV for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 17:03:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idH0Q-0001yn-4X for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 17:03:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idH0O-0001yf-7w for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 17:03:01 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1idH0J-0008To-13 for pgsql-general@postgresql.org; Fri, 06 Dec 2019 17:02:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A294D2291E; Fri, 6 Dec 2019 12:02:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 06 Dec 2019 12:02:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=l TKUHv00DqizEcFcs22VQBZoxtnjXgkdsL/grJRqxmI=; b=jwNP3Mx+g9n4L16u6 uBtq+AdYYllWYkc3rTpUbMo5H5vl5o63VbyzsquuKxX3fOXrMZAOw27RJIvBLD2+ qW7aFZXY5Y2zDc4fOWBsMQ9WelTOJ+16z31Kh6B0QEQwoJvs1DUFz8Wx1IZy8WWE YJswkMLwiL15v5yvuEhllY+Z3u/2dfkZIEW1+LN85n/Vo6fN5QO9GjGqBUvsz6gO cWCjFQcgxhzyX3u1btae7Sg4TfGQQyLaUSmravovL7cS6C6njppQV3kOH88JX33W W/lT8T4cD6vqZ+rywov1Cb5wt2BQ1JtyaDqNMweZ8j9ixuXOQx3DKpbyj6Z2um8b fMYgg== 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=lTKUHv00DqizEcFcs22VQBZoxtnjXgkdsL/grJRqx mI=; b=jYNsy5kzTfoHFuUt4/tZrp6+lvIXSs+xwMFqRgHWT42RJ8Q+FUj0Qagxw 0086w0Twv4LhbCy3+E0r44MSR7FGMkZ3C94d3Ap+BYQj5b2+cDeqqhVARqW5TG8h 0CuIxyQbvckNxgtrypaDBR0Jxw9RdNlKnqBgbZ/+Vmu5JRnxb2ggMmGdSMRm/AHV cx8VyyU0WKGLUxjVWfUeeIHDgYLyE+KyPMyPwBgkB45o43rnc6S18F3l8561bKJn beSKako/Da7/9RWUtPdTx1nndVGFQDur4vi2tzJvrrA56Rgg4mqXvHN7b8qcrqWi PB1tlQxLeXrf6y8w/XOGZWnhAAUZQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekfedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdluddumdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddt feehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeehtddrudeljedrkedtrddvnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id EDE478005C; Fri, 6 Dec 2019 12:02:50 -0500 (EST) Subject: Re: upgrade and migrate To: Julie Nishimura , Tom Lane , Stephen Frost Cc: Laurenz Albe , Michael Paquier , "pgsql-general@lists.postgresql.org" , pgsql-general References: <20191204044843.GD2381@paquier.xyz> <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> <20191204130830.GF6962@tamriel.snowman.net> <13833.1575466120@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Fri, 6 Dec 2019 09:02:49 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/6/19 8:14 AM, Julie Nishimura wrote: > Thank you everybody for your suggestions. > So, to summarize - we can run pg_upgrade from 8.3 to 9.4 (in place), fix > app related issues (if any), then migrate to a version more recent than > 9.6, either through pg_basebackup or through logical replication (if we > would upgrade to version 10). > > First step requires downtime. Second does not. Correct? Well pg_basebackup is a binary copy so I am pretty sure you cannot use the copy from an old Postgres version with a new Postgres major version. I am also pretty sure whatever you do there is going to be some downtime. Left unsaid to date and relevant to downtime: 1) Space/machines available to juggle multiple Postgres instances? 2) Network proximity of above. 3) Whether it is essential all the databases remain in a single cluster? > > -Julie > > ------------------------------------------------------------------------ > *From:* Tom Lane > *Sent:* Wednesday, December 4, 2019 5:28 AM > *To:* Stephen Frost > *Cc:* Laurenz Albe ; Michael Paquier > ; Julie Nishimura ; > pgsql-general@lists.postgresql.org ; > pgsql-general > *Subject:* Re: upgrade and migrate > Stephen Frost writes: >> * Laurenz Albe (laurenz.albe@cybertec.at) wrote: >>> Right, Slony is the way to go, since pg_upgrade doesn't support 8.3. >>> I would upgrade to a version more recent than 9.6. > >> So...  there's a bit of history here.  pg_upgrade in 9.4 actually does >> support upgrading from 8.3.X.  Support for upgrading from 8.3 was >> removed in 2209b3923a7afe0b6033ecfea972219df252ca8e. > > Yeah.  Also note that 8.3 to 9.6-or-newer is going to be a pretty > huge jump in terms of minor compatibility issues (have you read > all the relevant release notes?).  So there's something to be said > for breaking this down into two steps: update to 9.4, test/fix > your applications against that, then make a second jump to something > current.  Each of those jumps could be handled by the respective > version of pg_upgrade.  I concur with Laurenz's advice that stopping > at 9.6 is probably not your best choice for a migration today. > >                         regards, tom lane -- Adrian Klaver adrian.klaver@aklaver.com