pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Setting up replication from 9.4 to 10.4
Date: Wed, 6 Jun 2018 08:40:19 +0200
Message-ID: <89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de> (raw)
In-Reply-To: <CAPtQa1=Roacrq-V9NvPsfShWbW_zihE2p12xPNxSp-GMFozg+w@mail.gmail.com>
References: <CAPtQa1=Roacrq-V9NvPsfShWbW_zihE2p12xPNxSp-GMFozg+w@mail.gmail.com>



Am 06.06.2018 um 08:16 schrieb Lionel Tressens:
> Hello,
>
> We are running a single PG 9.4 database node we are switching to PG 
> 10.4 (which will run as master + setup of a slave)
>
> To minimize downtime when switching from the 9.4 server to the 10.4 
> one, I would like to setup a replication stream instead of stopping 
> the production, dumping 9.4 and restoring in 10.4 which my take a lot 
> of time.
>
> The next steps would be to reinstall the 9.4 server from scratch with 
> 10.4 and setup this host as a slave, ready to take the master role if 
> needed (hot standby).
>
> Can such a replication be established between 9.4 and 10.4 and what 
> replication tool/schema to use ? I have been through the documentation 
> on replication in 9.4 and 10.4 but things are very confusing to me 
> about this point.
>

you can't use the in-build streaming replication between different major 
versions, but you can use trigger-based replications, for instance 
londiste or slony.

You can also use use our extension pglogical, see 
https://www.2ndquadrant.com/en/resources/pglogical/. If i were you i 
would use the latter ;-)


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com





view thread (3+ messages)  latest in thread

Message-ID: <89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de>
Permalink:  ../89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de/
Also on:    postgresql.org/message-id/89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de

 · 

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: andreas@a-kretschmer.de
  Subject: Re: Setting up replication from 9.4 to 10.4
  In-Reply-To: <89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de>
  References: <CAPtQa1=Roacrq-V9NvPsfShWbW_zihE2p12xPNxSp-GMFozg+w@mail.gmail.com> <89eb13bf-870b-4a11-eb45-dd3288d7be3c@a-kretschmer.de>

* 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