mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Doc: Update the behavior of generated columns in Logical Replication.
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
			
			
This commit is contained in:
		@@ -514,8 +514,9 @@ CREATE TABLE people (
 | 
				
			|||||||
    </listitem>
 | 
					    </listitem>
 | 
				
			||||||
    <listitem>
 | 
					    <listitem>
 | 
				
			||||||
     <para>
 | 
					     <para>
 | 
				
			||||||
      Generated columns are skipped for logical replication and cannot be
 | 
					      Generated columns can be replicated during logical replication by
 | 
				
			||||||
      specified in a <command>CREATE PUBLICATION</command> column list.
 | 
					      including them in the column list of the
 | 
				
			||||||
 | 
					      <command>CREATE PUBLICATION</command> command.
 | 
				
			||||||
     </para>
 | 
					     </para>
 | 
				
			||||||
    </listitem>
 | 
					    </listitem>
 | 
				
			||||||
   </itemizedlist>
 | 
					   </itemizedlist>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1436,7 +1436,9 @@ test_sub=# SELECT * FROM child ORDER BY a;
 | 
				
			|||||||
   During initial data synchronization, only the published columns are
 | 
					   During initial data synchronization, only the published columns are
 | 
				
			||||||
   copied.  However, if the subscriber is from a release prior to 15, then
 | 
					   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,
 | 
					   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.
 | 
				
			||||||
  </para>
 | 
					  </para>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <warning id="logical-replication-col-list-combining">
 | 
					   <warning id="logical-replication-col-list-combining">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user