pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: G Chandrasekar <vgchandru@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Reading from replication slot fails if publication is dropped and created.
Date: Thu, 8 Dec 2022 07:13:01 +0000 (UTC)
Message-ID: <1058362846.740040.1670483581746@mail.yahoo.com> (raw)
References: <1058362846.740040.1670483581746.ref@mail.yahoo.com>

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.

Message-ID: <1058362846.740040.1670483581746@mail.yahoo.com>
Permalink:  ../1058362846.740040.1670483581746@mail.yahoo.com/
Also on:    postgresql.org/message-id/1058362846.740040.1670483581746@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: vgchandru@yahoo.com
  Subject: Re: Reading from replication slot fails if publication is dropped and created.
  In-Reply-To: <1058362846.740040.1670483581746@mail.yahoo.com>
  References: <1058362846.740040.1670483581746.ref@mail.yahoo.com> <1058362846.740040.1670483581746@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox