doc: Clarify logical replication documentation
authorPeter Eisentraut
Mon, 8 Jul 2019 12:28:42 +0000 (14:28 +0200)
committerPeter Eisentraut
Mon, 8 Jul 2019 12:29:11 +0000 (14:29 +0200)
Document that the data types of replicated tables do not need to
match.  The documentation previously claimed that they had to match.

Author: Robert Treat 
Discussion: https://www.postgresql.org/message-id/flat/CAJSLCQ13==D8Ka2YLyctTm0Y+8MhGYcX_zj7fU0rqRzhcV++3w@mail.gmail.com

doc/src/sgml/logical-replication.sgml

index 41770a466c8077725c7bf148b5c960071976ef30..0f0fb00bc9f12530a691ad8cde114ac25366dc38 100644 (file)
   
 
   
-   Columns of a table are also matched by name.  A different order of columns
-   in the target table is allowed, but the column types have to match.  The
-   target table can have additional columns not provided by the published
-   table.  Those will be filled with their default values.
+   Columns of a table are also matched by name.  The order of columns in the
+   subscriber table does not need to match that of the publisher.  The data
+   types of the columns do not need to match, as long as the text
+   representation of the data can be converted to the target type.  For
+   example, you can replicate from a column of type integer to a
+   column of type bigint.  The target table can also have
+   additional columns not provided by the published table.  Any such columns
+   will be filled with the default value as specified in the definition of the
+   target table.