Re: Is it safe to transfer logical replication publication/subscription?

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Mike Lissner <mlissner(at)michaeljaylissner(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Is it safe to transfer logical replication publication/subscription?
Date: 2020-01-09 15:52:53
Message-ID: 714db546-174c-806b-f2d7-708a1658109f@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2020-01-08 23:55, Mike Lissner wrote:
> That's a great point, thanks. The DROP SUBSCRIPTION notes say you can:
>
>> Disassociate the subscription from the replication slot by executing ALTER SUBSCRIPTION ... SET (slot_name = NONE). After that, DROP SUBSCRIPTION will no longer attempt any actions on a remote host.
>
> I'll read some more about the replication slots themselves (I did read
> about them a while back), but doing the above seems like a good way to
> break B from A, before resubscribing C to A instead?

Yes, that's the one you want.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2020-01-09 16:05:22 Re: Partitions child tables and analyze
Previous Message Jehan-Guillaume de Rorthais 2020-01-09 14:14:59 Re: what to do after a failover