pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reid Thompson <Reid.Thompson@omnicell.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Reid Thompson <Reid.Thompson@omnicell.com>
Subject: PG 9.6 managed fail over of master, how do i manage a pg_logical subscriber
Date: Tue, 19 Feb 2019 20:51:16 +0000
Message-ID: <82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.com> (raw)

Hi, 
I have the following configuration.

pg9.6_master --> streaming replica pg9.6_standy
             --> pg_logical replication of several schemas to pg9.6_logical

We plan to perform a managed fail over of pg9.6_master to pg9.6_standy.
As part of the fail over, the virtual IP address and hostname of
pg9.6_master will be migrated to pg9.6_standy.
I'm looking for guidance on how to keep the pg_logical replication going
to pg9.6_logical from the newly promoted 'master'.

If I shutdown pg9.6_logical prior to the fail over, and start it back up
after the failover, it should come up 'believing' that pg9.6_standby is
pg9.6_master, will it 'just work'? or is there a process that I need to
follow have pg9.6_logical succesfully replicate from the newly promoted
host?

thanks,
reid



Message-ID: <82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.com>
Permalink:  ../82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.com/
Also on:    postgresql.org/message-id/82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.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: Reid.Thompson@omnicell.com
  Subject: Re: PG 9.6 managed fail over of master, how do i manage a pg_logical subscriber
  In-Reply-To: <82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.com>
  References: <82ee44620ca6fec107d4d1c1385280dc40806d13.camel@omnicell.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