Re: restarting logical replication after upgrading standby - Mailing list pgsql-admin

From John DeSoi
Subject Re: restarting logical replication after upgrading standby
Date
Msg-id 60559CE6-D89F-4897-883D-1D716A4F654A@pgedit.com
Whole thread Raw
In response to Re: restarting logical replication after upgrading standby  (Axel Rau <Axel.Rau@chaos1.de>)
List pgsql-admin

> 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.





pgsql-admin by date:

Previous
From: Nikhil Shetty
Date:
Subject: Re: Lost replication slots after pg_upgrade.
Next
From: "Roberto D. Maggi"
Date:
Subject: Re: pgadmin doesn't show the tables in brand new created db