pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgresql11: How to use publication/subscription on primary/standby setup
2+ messages / 2 participants
[nested] [flat]

* postgresql11: How to use publication/subscription on primary/standby setup
@ 2021-09-29 09:01 Abhishek B <abhishekbhola05@gmail.com>
  2021-10-01 12:03 ` Re: postgresql11: How to use publication/subscription on primary/standby setup Tomas Pospisek <tpo2@sourcepole.ch>
  0 siblings, 1 reply; 2+ messages in thread

From: Abhishek B @ 2021-09-29 09:01 UTC (permalink / raw)
  To: pgsql-general

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?

Thanks and regards,
Abhishek Bhola

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: postgresql11: How to use publication/subscription on primary/standby setup
  2021-09-29 09:01 postgresql11: How to use publication/subscription on primary/standby setup Abhishek B <abhishekbhola05@gmail.com>
@ 2021-10-01 12:03 ` Tomas Pospisek <tpo2@sourcepole.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Pospisek @ 2021-10-01 12:03 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-10-01 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29 09:01 postgresql11: How to use publication/subscription on primary/standby setup Abhishek B <abhishekbhola05@gmail.com>
2021-10-01 12:03 ` Tomas Pospisek <tpo2@sourcepole.ch>

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