From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Mike Lissner <mlissner@michaeljaylissner.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Is it safe to transfer logical replication publication/subscription?
Date: Thu, 9 Jan 2020 16:52:53 +0100
Message-ID: <714db546-174c-806b-f2d7-708a1658109f@2ndquadrant.com> (raw)
In-Reply-To: <CAMp9=EyG09uSn-D268F3Dusz8AkAxYaVuM66_kUZudXU8Wj2GA@mail.gmail.com>
References: <CAMp9=EwMa=LVtFhFZeYUyO7EzLLKiy3A6vA5tG-pyBq4S52QFw@mail.gmail.com>
<70822442-b8dc-1394-382b-ed8a024c89d8@2ndquadrant.com>
<CAMp9=EyG09uSn-D268F3Dusz8AkAxYaVuM66_kUZudXU8Wj2GA@mail.gmail.com>
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
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: peter.eisentraut@2ndquadrant.com, mlissner@michaeljaylissner.com
Subject: Re: Is it safe to transfer logical replication publication/subscription?
In-Reply-To: <714db546-174c-806b-f2d7-708a1658109f@2ndquadrant.com>
References: <CAMp9=EwMa=LVtFhFZeYUyO7EzLLKiy3A6vA5tG-pyBq4S52QFw@mail.gmail.com> <70822442-b8dc-1394-382b-ed8a024c89d8@2ndquadrant.com> <CAMp9=EyG09uSn-D268F3Dusz8AkAxYaVuM66_kUZudXU8Wj2GA@mail.gmail.com> <714db546-174c-806b-f2d7-708a1658109f@2ndquadrant.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