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 1idLkn-0002uN-LT for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 22:07:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idLkm-0001x3-6W for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 22:07:12 +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 1idLkl-0001ww-QB for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 22:07:11 +0000 Received: from athena.simkin.ca ([2607:f040:1001:2::ff:2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idLkh-00057D-ES for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 22:07:11 +0000 Received: from skynet.simkin.ca (d205-250-70-177.bchsia.telus.net [205.250.70.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id ABFE0DD3D432 for ; Fri, 6 Dec 2019 14:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1575670022; bh=B3OgIXJNsYGy1krAq+nVAyXccWa+XYrlClyw+mMV/kU=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=n03ZmNR2q3UOXnD1DABAZW9QZXQvwdB91bDH0TyAybjjEOsKWGPmpcPFHWf4wRCNx Im/rr5pL9wEvRL4rCStJ97L5CI1gZkBCeYl8Pvca9Btbhd3zfQuLMLrFFAiWpNGlPY 7ET1p5rlzwZHCRha8KrsOSCiGRqfwMOv3okSaXX8ZmYBfhlsSuIlQKUskSDENVUQUX D92GRjCYY3AsaerVzfnKo//BYI+MhZXaKO1xzHuZfB/yXI3swRg02YQeQenYSLINXT PmfZaRDbD2K35HiF/THMmD+7zKjZdHdhoSLbicdUeae/Eq8/ZeWTkYhx7hOMG2OsT3 vcQTKT56ASPeA== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id D00CF21A5CB34 for ; Fri, 6 Dec 2019 14:07:01 -0800 (PST) Message-ID: <66e388daa59b07b49e53f00d2a9d05f6ca330501.camel@lists.simkin.ca> Subject: Re: migration from 9.4 to 9.6 From: Alan Hodgson To: pgsql-general@lists.postgresql.org Date: Fri, 06 Dec 2019 14:07:01 -0800 In-Reply-To: References: , Content-Type: multipart/alternative; boundary="=-FBLajpy1KfJqNT5dnckv" User-Agent: Evolution 3.30.5 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-FBLajpy1KfJqNT5dnckv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2019-12-06 at 21:38 +0000, Julie Nishimura wrote: > I'd like to copy one single database from 9.4 cluster to a new 9.6 > cluster (migration with the upgrade), to the different host > > > > > > > > > > Put 9.4 on the new server. Replicate the db to it. When you're ready to switch, shut down the master, promote the new db, and then shut it down and pg_upgrade -k it to 9.6. That does require the binaries from both versions to be on the new server for a while, but it'll give you the least downtime and it's a very simple replication setup. --=-FBLajpy1KfJqNT5dnckv Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Fri, 20= 19-12-06 at 21:38 +0000, Julie Nishimura wrote:
I'd like to copy one single database from 9.4 cluster to a new 9.6 cluster = (migration with the upgrade), to the different host


Put 9.4 on the new server. Replicate= the db to it. When you're ready to switch, shut down the master, promote t= he new db, and then shut it down and pg_upgrade -k it to 9.6.
That does require the binaries from both versions to be on the = new server for a while, but it'll give you the least downtime and it's a ve= ry simple replication setup.
<= /font>

--=-FBLajpy1KfJqNT5dnckv--