Re: Lost replication slots after pg_upgrade.

Поиск
Список
Период
Сортировка
Искать
От
Nikhil Shetty
Тема
Re: Lost replication slots after pg_upgrade.
Дата
Msg-id
CAFpL5Vx8N3ww37CNH28VfFes=vtRwymvRDo_2TBAY2PdXCSLug@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Victor Sudakov <vas@sibptus.ru>
Re: Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Victor Sudakov <vas@sibptus.ru>
Re: Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Julien Rouhaud <rjuju123@gmail.com>
Re: Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Julien Rouhaud <rjuju123@gmail.com>
Re: Lost replication slots after pg_upgrade. John DeSoi <desoi@pgedit.com>
Re: Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Victor Sudakov <vas@sibptus.ru>
Re: Lost replication slots after pg_upgrade. Victor Sudakov <vas@sibptus.ru>
Re: Lost replication slots after pg_upgrade. Julien Rouhaud <rjuju123@gmail.com>
Re: Lost replication slots after pg_upgrade. Nikhil Shetty <nikhil.dba04@gmail.com>
Re: Lost replication slots after pg_upgrade. Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Re: Lost replication slots after pg_upgrade. Victor Sudakov <vas@sibptus.ru>
Hi John,

Would it work as expected if before pg_upgrade on the standby:
alter subscription my_subscription disable;
alter subscription my_subscription set (slot_name = NONE);
And then after pg_upgrade:
alter subscription my_subscription enable;
I have not tried it yet, but I thought this would be the simplest option.

We are using physical replication slots.

Thanks,
Nikhil

On Wed, Feb 9, 2022 at 2:41 AM John DeSoi <desoi@pgedit.com> wrote:

> On Feb 8, 2022, at 2:08 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
>
> Because pg_upgrade modifies your primary instance in such a way that a standby
> can't simply keep replicating from it.

Would it work as expected if before pg_upgrade on the standby:

alter subscription my_subscription disable;
alter subscription my_subscription set (slot_name = NONE);

And then after pg_upgrade:

alter subscription my_subscription enable;

I have not tried it yet, but I thought this would be the simplest option.

John DeSoi, Ph.D.


В списке pgsql-admin по дате отправления
От: John DeSoi
Дата:
От: John DeSoi
Дата:
FAQ