Re: How is this possible "publication does not exist"

From: Dave Cramer <davecramer(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How is this possible "publication does not exist"
Date: 2021-08-11 11:27:37
Message-ID: CADK3HHL-mNx1ZW3=9gu2bdGm52Nup-3FaKNTvLjzU54BJPf-NQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 11 Aug 2021 at 07:24, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:

> On Wed, Aug 11, 2021 at 1:18 AM Dave Cramer <davecramer(at)gmail(dot)com> wrote:
> >
> > Reviving this thread
> >
> > 2021-08-10 19:05:09.096 UTC [3738] LOG: logical replication apply
> worker for subscription "sub_mycluster_alltables" has started
> > 2021-08-10 19:05:09.107 UTC [3739] LOG: logical replication table
> synchronization worker for subscription "sub_mycluster_alltables", table
> "t_random" has started
> > 2021-08-10 19:05:12.222 UTC [3739] LOG: logical replication table
> synchronization worker for subscription "sub_mycluster_alltables", table
> "t_random" has finished
> > 2021-08-10 19:05:14.806 UTC [3738] ERROR: could not receive data from
> WAL stream: ERROR: publication "sub_mycluster_alltables" does not exist
> > CONTEXT: slot "sub_mycluster_alltables", output plugin
> "pgoutput", in the change callback, associated LSN 0/4015DF0
> > 2021-08-10 19:05:14.811 UTC [175] LOG: background worker "logical
> replication worker" (PID 3738) exited with exit code 1
> >
> >
> > select * from pg_publication;
> > -[ RECORD 1 ]+------------------------
> > oid | 16415
> > pubname | sub_mycluster_alltables
> > pubowner | 10
> > puballtables | t
> > pubinsert | t
> > pubupdate | t
> > pubdelete | t
> > pubtruncate | t
> >
>
> By any chance, did you dropped and recreated this publication as
> mentioned in your first email? If so, I think this can happen because
> of our use of historical snapshots to consult system catalogs.
>

In this case, no.

I am suspecting this error comes from pgoutput though.

Dave

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-08-11 11:36:54 Re: How is this possible "publication does not exist"
Previous Message Amit Kapila 2021-08-11 11:24:02 Re: How is this possible "publication does not exist"