From da233dc6090b2e2e0ccdfefef7a5d6de43d61b4a Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Fri, 2 Sep 2022 12:09:48 +1000 Subject: [PATCH v5] Column List replica identity rules. It was not strictly correct to say that a column list must always include replica identity columns. This patch modifies the CREATE PUBLICATION "Notes" so the column list replica identity rules are more similar to those documented for row filters. --- doc/src/sgml/ref/create_publication.sgml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml index 5790d76..b0d59ef 100644 --- a/doc/src/sgml/ref/create_publication.sgml +++ b/doc/src/sgml/ref/create_publication.sgml @@ -90,8 +90,8 @@ CREATE PUBLICATION name When a column list is specified, only the named columns are replicated. If no column list is specified, all columns of the table are replicated - through this publication, including any columns added later. If a column - list is specified, it must include the replica identity columns. + through this publication, including any columns added later. It has no + effect on TRUNCATE commands. @@ -253,6 +253,13 @@ CREATE PUBLICATION name + Any column list must include the REPLICA IDENTITY columns + in order for UPDATE or DELETE + operations to be published. There are no column list restrictions if the + publication publishes only INSERT operations. + + + A row filter expression (i.e., the WHERE clause) must contain only columns that are covered by the REPLICA IDENTITY, in order for UPDATE and DELETE operations -- 1.8.3.1