Commit 482501d4 authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Clarify logical replication documentation

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 <rob@xzilla.net>
Discussion: https://www.postgresql.org/message-id/flat/CAJSLCQ13==D8Ka2YLyctTm0Y+8MhGYcX_zj7fU0rqRzhcV++3w@mail.gmail.com
parent 6b854896
...@@ -232,10 +232,15 @@ ...@@ -232,10 +232,15 @@
</para> </para>
<para> <para>
Columns of a table are also matched by name. A different order of columns Columns of a table are also matched by name. The order of columns in the
in the target table is allowed, but the column types have to match. The subscriber table does not need to match that of the publisher. The data
target table can have additional columns not provided by the published types of the columns do not need to match, as long as the text
table. Those will be filled with their default values. representation of the data can be converted to the target type. For
example, you can replicate from a column of type <type>integer</type> to a
column of type <type>bigint</type>. 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.
</para> </para>
<sect2 id="logical-replication-subscription-slot"> <sect2 id="logical-replication-subscription-slot">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment