agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: antonio.v.botelho@gmail.com
Subject: logial replication - drop subscription.
Date: Wed, 28 May 2025 20:20:51 +0000
Message-ID: <174846365177.780.12843663746002009140@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/sql-droppublication.html
Description:
Hi,
I'm using a lot the logical replication.
I have to do some DDL changes, via an automatic process, on the primary.
That process drop the existing publication, which will stop the
subscription.
I kept the LSN information on the primary, perform the DDL changes on the
replica.
Than I recreate the publication, use the pg_replication_slot_advance using
the savec LSN.
When I re-enable the subscription, I have an error message in the postgres
log saying that the publication doesn't exist. However, it does have the
same name.
Can a note be added on the "DROP PUBLICATION" page to mention that dropping
a publication will compromise the logical replication process event if the
publication is recreated with the same name.
Thanks.
view thread (2+ messages)
Message-ID: <174846365177.780.12843663746002009140@wrigleys.postgresql.org>
Permalink: ../174846365177.780.12843663746002009140@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/174846365177.780.12843663746002009140@wrigleys.postgresql.org
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, antonio.v.botelho@gmail.com
Subject: Re: logial replication - drop subscription.
In-Reply-To: <174846365177.780.12843663746002009140@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox