]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: Add "Attach Partition" limitation during logical replication.
authorAmit Kapila <akapila@postgresql.org>
Wed, 1 Dec 2021 04:48:27 +0000 (10:18 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 1 Dec 2021 04:48:27 +0000 (10:18 +0530)
commit4b8eec716a524b9c9f4a65660a7006628c1d8da3
treeb3d9705343660aa912686cd79032df2501c8ce3b
parent175edafd1f30a78643359b56c5545b5e7aabfb50
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
doc/src/sgml/ref/create_publication.sgml