aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2021-12-01 10:26:59 +0530
committerAmit Kapila <akapila@postgresql.org>2021-12-01 10:26:59 +0530
commit64e8456bbde159f29aaa528d311e41590a3dbec5 (patch)
tree18152c4333dc3f1d61e68ab816386edfd4bb8f42
parenta7359913a1c22e8c04f37140b9d983919baf10b2 (diff)
downloadpostgresql-64e8456bbde159f29aaa528d311e41590a3dbec5.tar.gz
postgresql-64e8456bbde159f29aaa528d311e41590a3dbec5.zip
Doc: Add "Attach Partition" limitation during logical replication.
ATTACHing a table into a partition tree whose root is published using a publication with publish_via_partition_root set to true does not result in the table's existing contents being replicated. This happens because subscriber doesn't consider replicating the newly attached partition as the root table is already in a 'ready' state. This behavior was introduced in PG13 (83fd4532a7) where we allowed to publish partition changes via ancestors. We can consider fixing this limitation in the future. Author: Amit Langote Reviewed-by: Hou Zhijie, Amit Kapila Backpatch-through: 13 Discussion: https://postgr.es/m/OS0PR01MB5716E97F00732B52DC2BBC2594989@OS0PR01MB5716.jpnprd01.prod.outlook.com
-rw-r--r--doc/src/sgml/ref/create_publication.sgml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml
index 2c516172917..1205df5f88c 100644
--- a/doc/src/sgml/ref/create_publication.sgml
+++ b/doc/src/sgml/ref/create_publication.sgml
@@ -190,6 +190,13 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
</para>
<para>
+ <command>ATTACH</command>ing a table into a partition tree whose root is
+ published using a publication with <literal>publish_via_partition_root</literal>
+ set to <literal>true</literal> does not result in the table's existing contents
+ being replicated.
+ </para>
+
+ <para>
<command>COPY ... FROM</command> commands are published
as <command>INSERT</command> operations.
</para>