diff --git a/doc/src/sgml/ref/alter_publication.sgml b/doc/src/sgml/ref/alter_publication.sgml index 44ae7e0e87..3e546fdd4d 100644 --- a/doc/src/sgml/ref/alter_publication.sgml +++ b/doc/src/sgml/ref/alter_publication.sgml @@ -154,6 +154,24 @@ ALTER PUBLICATION name RENAME TO . See there for more information. + + + When the partition root table is specified as the replication target + instead of its leaf tables, altering the + publish_via_partition_root parameter during + replication can cause data loss or duplication. This happens because + the subscriber initially subscribed to the leaf tables. After running + the ALTER PUBLICATION ... SET and + ALTER SUBSCRIPTION ... REFRESH PUBLICATION + command, the subscriber will subscribe to the partition root table. + + + To prevent the issue, you can avoid modifying the partitioned table + between the ALTER PUBLICATION ... SET and + ALTER SUBSCRIPTION ... REFRESH PUBLICATION and + refresh publication with copy_data = off. + +