Seamless Logical Replication during Fail-over

Поиск
Список
Период
Сортировка
От Moor Ali
Тема Seamless Logical Replication during Fail-over
Дата
Msg-id CAFmHKA6oXGNn+OG9mBDCXR9+wVXP36iA1k8yq69J-y5_a=xKMA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Seamless Logical Replication during Fail-over  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-general
Hi,

Is there any way to continue logical replication (either in-built or using pglogical) between a promoted replica and existing subscribers without data loss?

I could find some discussions about fail-over slots and other mechanisms for addressing this as part of PostgreSQL 9.6 release. But I am not sure if these changes made it to any of the releases. 

The use-case is as follows:
* Cluster A with a master and two or more replicas using synchronized streaming replication
* Cluster B containing a node which uses logical replication with Cluster A master. There may be a lag in updating this node.
* When Cluster A master goes down, a replica is promoted but it does not have any information about the logical replication slots created in the master. So, even if a new slot is created on the replica, there will be data loss on the subscriber side.

Any suggestions on how to address this using builtin mechanisms or using an extension are welcome.

Thanks,
Murali

В списке pgsql-general по дате отправления:

Предыдущее
От: PALAYRET Jacques
Дата:
Сообщение: Circles with circle() vs ST_Buffer() Equality equalities
Следующее
От: "Gavan Schneider"
Дата:
Сообщение: Re: PG12.2 Configure cannot enalble SSL