pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ekaterina Amez <ekaterina.amez@zunibal.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: migration from 9.4 to 9.6
Date: Mon, 9 Dec 2019 13:25:44 +0100
Message-ID: <d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com> (raw)
In-Reply-To: <66e388daa59b07b49e53f00d2a9d05f6ca330501.camel@lists.simkin.ca>
References: <BYAPR08MB5014AD1A201C44B9DA0819D6AC5F0@BYAPR08MB5014.namprd08.prod.outlook.com>
	<b886d09c-06a8-322f-1d05-9fbe7b63a4e5@aklaver.com>
	<BYAPR08MB501449BEF9E79FE504DC020DAC5F0@BYAPR08MB5014.namprd08.prod.outlook.com>
	<66e388daa59b07b49e53f00d2a9d05f6ca330501.camel@lists.simkin.ca>


El 6/12/19 a las 23:07, Alan Hodgson escribió:
> 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.


This is the plan we're going to follow to migrate from 9.2 to 9.6, as 
this is the only way to achieve almost zero downtime. The cons are, 
despite what Alan has mentioned, that you need double space because you 
have to create a slave replica.

view thread (6+ messages)

Message-ID: <d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com>
Permalink:  ../d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com/
Also on:    postgresql.org/message-id/d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ekaterina.amez@zunibal.com
  Subject: Re: migration from 9.4 to 9.6
  In-Reply-To: <d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com>
  References: <BYAPR08MB5014AD1A201C44B9DA0819D6AC5F0@BYAPR08MB5014.namprd08.prod.outlook.com> <b886d09c-06a8-322f-1d05-9fbe7b63a4e5@aklaver.com> <BYAPR08MB501449BEF9E79FE504DC020DAC5F0@BYAPR08MB5014.namprd08.prod.outlook.com> <66e388daa59b07b49e53f00d2a9d05f6ca330501.camel@lists.simkin.ca> <d98ade7c-905e-8786-497a-e497c19f1dbc@zunibal.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox