Skip to content

Commit 64e8456

Browse files
author
Amit Kapila
committed
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 (83fd453) 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
1 parent a735991 commit 64e8456

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/src/sgml/ref/create_publication.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
189189
<command>UPDATE</command>, or it may not be published at all.
190190
</para>
191191

192+
<para>
193+
<command>ATTACH</command>ing a table into a partition tree whose root is
194+
published using a publication with <literal>publish_via_partition_root</literal>
195+
set to <literal>true</literal> does not result in the table's existing contents
196+
being replicated.
197+
</para>
198+
192199
<para>
193200
<command>COPY ... FROM</command> commands are published
194201
as <command>INSERT</command> operations.

0 commit comments

Comments
 (0)