Reading from replication slot fails if publication is dropped and created. - Mailing list pgsql-general

From G Chandrasekar
Subject Reading from replication slot fails if publication is dropped and created.
Date
Msg-id 1058362846.740040.1670483581746@mail.yahoo.com
Whole thread Raw
List pgsql-general
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.

pgsql-general by date:

Previous
From: higherone
Date:
Subject: Is there a way to know write statistics on an individual index
Next
From: David Rowley
Date:
Subject: Re: Is there a way to know write statistics on an individual index