summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2018-06-27 05:40:18 +0000
committerPeter Eisentraut2018-06-27 05:40:18 +0000
commitc9d6a45724d642a00bd2b4c0f082cf4e1eb76e29 (patch)
treeffe82f80121ab95f08cfb7498dece449b65dd489
parent8121ab88e7dfe6ebe56c58257733354cb85f092c (diff)
doc: Document some nuances of logical replication of TRUNCATE
-rw-r--r--doc/src/sgml/logical-replication.sgml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml
index 1e7a54c8e3..59de6bcc0a 100644
--- a/doc/src/sgml/logical-replication.sgml
+++ b/doc/src/sgml/logical-replication.sgml
@@ -373,6 +373,22 @@
<listitem>
<para>
+ Replication of <command>TRUNCATE</command> commands is supported, but
+ some care must be taken when truncating groups of tables connected by
+ foreign keys. When replicating a truncate action, the subscriber will
+ truncate the same group of tables that was truncated on the publisher,
+ either explictly specified or implicitly collected via
+ <literal>CASCADE</literal>, minus tables that are not part of the
+ subscription. This will work correctly if all affected tables are part
+ of the same subscription. But if some tables to be truncated on the
+ subscriber have foreign-key links to tables that are not part of the same
+ (or any) subscription, then the application of the truncate action on the
+ subscriber will fail.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
Large objects (see <xref linkend="largeobjects"/>) are not replicated.
There is no workaround for that, other than storing data in normal
tables.