Re: How is this possible "publication does not exist" - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: How is this possible "publication does not exist"
Date
Msg-id 89b22955-bf9f-f7f2-9620-fbe2e4766a18@2ndquadrant.com
Whole thread Raw
In response to Re: How is this possible "publication does not exist"  (Dave Cramer <davecramer@gmail.com>)
Responses Re: How is this possible "publication does not exist"  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Re: How is this possible "publication does not exist"  (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>)
List pgsql-hackers
On 2019-12-19 19:15, Dave Cramer wrote:
> It seems that if you drop the publication on an existing slot it needs 
> to be recreated. Is this expected behaviour

A publication is not associated with a slot.  Only a subscription is 
associated with a slot.

> drop publication dbz_publication ;
> DROP PUBLICATION
> postgres=# create publication dbz_publication for all tables;
> CREATE PUBLICATION
> postgres=# SELECT * FROM pg_logical_slot_get_binary_changes('debezium', 
> NULL, NULL,'proto_version','1','publication_names','dbz_publication');
> ERROR:  publication "dbz_publication" does not exist
> CONTEXT:  slot "debezium", output plugin "pgoutput", in the change 
> callback, associated LSN 0/4324180

This must be something particular to Debezium.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: How is this possible "publication does not exist"
Next
From: Peter Eisentraut
Date:
Subject: TCP option assign hook doesn't work well if option not supported