Doc: Update the behavior of generated columns in Logical Replication.
authorAmit Kapila
Mon, 4 Nov 2024 04:09:30 +0000 (09:39 +0530)
committerAmit Kapila
Mon, 4 Nov 2024 04:09:30 +0000 (09:39 +0530)
Commit 745217a051 misses updating the new behavior of generated columns in
logical replication at a few places.

Reported-by: Peter Smith, Ajin Cherian
Author: Vignesh C
Discussion: https://postgr.es/m/CALDaNm2JOO7szz9+uaQbjmgZOfzbM_9tAQdFF8H5BjkQeaJs0A@mail.gmail.com
Discussion: https://postgr.es/m/B80D17B2-2C8E-4C7D-87F2-E5B4BE3C069E@gmail.com

doc/src/sgml/ddl.sgml
doc/src/sgml/logical-replication.sgml

index f6344b3b79a8fc03640ac1bd16837e883d6c808d..f02f67d7b868ca8c6988af9040afb69412f4633d 100644 (file)
@@ -514,8 +514,9 @@ CREATE TABLE people (
     
     
      
-      Generated columns are skipped for logical replication and cannot be
-      specified in a CREATE PUBLICATION column list.
+      Generated columns can be replicated during logical replication by
+      including them in the column list of the
+      CREATE PUBLICATION command.
      
     
    
index 98a7ad0c2725c46443fa28bd883683929f14d5c3..b7e340824caa87a51a8d54b3ea18a1e43dce0f87 100644 (file)
@@ -1436,7 +1436,9 @@ test_sub=# SELECT * FROM child ORDER BY a;
    During initial data synchronization, only the published columns are
    copied.  However, if the subscriber is from a release prior to 15, then
    all the columns in the table are copied during initial data synchronization,
-   ignoring any column lists.
+   ignoring any column lists. If the subscriber is from a release prior to 18,
+   then initial table synchronization won't copy generated columns even if they
+   are defined in the publisher.