pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Pospisek <tpo2@sourcepole.ch>
To: pgsql-general@lists.postgresql.org
Subject: Re: postgresql11: How to use publication/subscription on primary/standby setup
Date: Fri, 1 Oct 2021 14:03:29 +0200
Message-ID: <e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch> (raw)
In-Reply-To: <CAHHOhf3ZZW7GPLUJYcM5c_onUN1m+ccdGjemoOBnqb_jXkhXew@mail.gmail.com>
References: <CAHHOhf3ZZW7GPLUJYcM5c_onUN1m+ccdGjemoOBnqb_jXkhXew@mail.gmail.com>

On 29.09.21 11:01, Abhishek B wrote:
> Is there a solution to use publication/subscription on a master-slave or 
> primary-standby postgres setup without manual intervention?
> 
> Currently the DB clusters are managed by Pacemaker. Once there is a 
> failover, the pacemaker is able to promote the secondary node to 
> primary, but the logical replication stops working after that. Is there 
> any way to automatically move the contents of pg_replslot to the new 
> primary node?

I'm not sure I understand you correctly, but I'd suggest to have a look 
at patroni, which maybe does what you want.
*t





view thread (2+ messages)

Message-ID: <e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch>
Permalink:  ../e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch/
Also on:    postgresql.org/message-id/e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch

 · 

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: tpo2@sourcepole.ch
  Subject: Re: postgresql11: How to use publication/subscription on primary/standby setup
  In-Reply-To: <e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch>
  References: <CAHHOhf3ZZW7GPLUJYcM5c_onUN1m+ccdGjemoOBnqb_jXkhXew@mail.gmail.com> <e1d579b9-6734-9e39-708b-cd4b7b95a4c4@sourcepole.ch>

* 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