pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: Axel Rau <Axel.Rau@chaos1.de>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: restarting logical replication after upgrading standby
Date: Wed, 9 Feb 2022 07:57:03 -0600
Message-ID: <60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.com> (raw)
In-Reply-To: <c534c888-93dd-48e0-fb31-4798bc1ac6c0@Chaos1.DE>
References: <a4ddf516-469f-2101-069b-033644230ac0@Chaos1.DE>
<757323a0-6eeb-3ec1-d578-d98214247c41@Chaos1.DE>
<CAM+6J94Wtzm3M1BwRYjzRzzr9VPkJ+KPtz3M=gWisgP2ywTMZQ@mail.gmail.com>
<1cc52b6e-484e-8502-65dd-d3ba66982fb5@Chaos1.DE>
<CAM+6J96j4qErattg-DiqRKFE80GFTn6ag7-Q2A7DKQX1UWUOGQ@mail.gmail.com>
<c534c888-93dd-48e0-fb31-4798bc1ac6c0@Chaos1.DE>
> On Feb 7, 2022, at 11:00 AM, Axel Rau <Axel.Rau@chaos1.de> wrote:
>
> Anybody out there, succeeding with upgrading a logical replication subscriber without resyncing it?
I have not tried it, but thought this the idea below would work for upgrading the publisher or subscriber with pg_upgrade. Plan to test it in a few weeks. If anyone knows it will not work, that will save me some time :).
Before pg_upgrade on the subscriber:
alter subscription my_subscription disable;
alter subscription my_subscription set (slot_name = NONE);
And then after pg_upgrade:
alter subscription my_subscription enable;
John DeSoi, Ph.D.
view thread (13+ messages) latest in thread
Message-ID: <60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.com> Permalink: ../60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.com/ Also on: postgresql.org/message-id/60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.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 using the --to and --cc options: reply via email To: pgsql-admin@postgresql.org Cc: desoi@pgedit.com, Axel.Rau@chaos1.de, pgsql-admin@lists.postgresql.org Subject: Re: restarting logical replication after upgrading standby In-Reply-To: <60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.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