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

From: G Chandrasekar <vgchandru(at)yahoo(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Reading from replication slot fails if publication is dropped and created.
Date: 2022-12-08 07:13:01
Message-ID: 1058362846.740040.1670483581746@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-general by date

  From Date Subject
Next Message David Rowley 2022-12-08 10:53:16 Re: Is there a way to know write statistics on an individual index
Previous Message higherone 2022-12-08 06:58:36 Is there a way to know write statistics on an individual index