Re: BUG #18644: ALTER PUBLICATION ... SET (publish_via_partition_root) wrong/undocumented behavior.
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: maxim.boguk@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2024-10-04T07:44:49Z
Lists: pgsql-bugs
On Wed, Oct 2, 2024 at 12:14 AM PG Bug reporting form <noreply@postgresql.org> wrote: > > The following bug has been logged on the website: ... > > When ALTER PUBLICATION ... SET (publish_via_partition_root) executed on the > existing logical replication with data > (following ALTER SUBSCRIPTION ... REFRESH PUBLICATION), the database start > copy whole partitioned table from start (thus breaking existing logical > replication). > What's worse - I didn't found any way get out of such situation less than > redo all multi-TB logical replication from blank db. > > Also ALTER SUBSCRIPTION ... REFRESH PUBLICATION (copy_data=false) - cannot > be used as workaround because it lead to loose any changes in partitioned > table between run ALTER PUBLICATION and ALTER SUBSCRIPTION. > > Afterthought this behavior not surprising at all but I think better to > document it somewhere. > Can you tell us what additional information you want to document other than what is already documented in CREATE PUBLICATION [1] related to this parameter? It would be useful if you can create a small test case to show the exact problem and what is your usecase for the same? [1] - https://www.postgresql.org/docs/devel/sql-createpublication.html -- With Regards, Amit Kapila.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Doc: Add a caution in alter publication.
- b8a046081c43 18.0 landed