Обсуждение: Reading from replication slot fails if publication is dropped and created.

Поиск
Список
Период
Сортировка

Reading from replication slot fails if publication is dropped and created.

От
G Chandrasekar
Дата:
Hi,
  Have a scenario, where the publication was accidentely deleted and eventhough the publication was re-created, trying to read data from the replication slot fails with the following error message.

"ERROR: publication \"dbz_publication\" does not exist\n  Where: slot \"s20d07aebf4204109872de556b66b0afb\", output plugin \"pgoutput\", in the change callback, associated LSN 3D/717714F0"

Aware that the publication would have to be created first and then the replication slow should follow. Is there any way to have the system working without having to delete the replication slot and re-create all over? i.e create publication and set the appropriate references ?

Note; Restarted the db instance after re-creating the publication (presume some internal model assocating the publication -> tables -> replication slot is broken).

Appreciate thought/suggestions.

Thanks.