253
253
will be filled with the default value as specified in the definition of the
254
254
target table. However, logical replication in binary format is more
255
255
restrictive. See the
256
- <link linkend="sql-createsubscription-with-binary"><literal>binary</literal></link>
256
+ <link linkend="sql-createsubscription-params- with-binary"><literal>binary</literal></link>
257
257
option of <command>CREATE SUBSCRIPTION</command> for details.
258
258
</para>
259
259
@@ -371,7 +371,7 @@ INSERT 0 3
371
371
<para>
372
372
Create publications for the tables. The publications <literal>pub2</literal>
373
373
and <literal>pub3a</literal> disallow some
374
- <link linkend="sql-createpublication-with-publish"><literal>publish</literal></link>
374
+ <link linkend="sql-createpublication-params- with-publish"><literal>publish</literal></link>
375
375
operations. The publication <literal>pub3b</literal> has a row filter (see
376
376
<xref linkend="logical-replication-row-filter"/>).
377
377
<programlisting>
@@ -593,7 +593,7 @@ ALTER SUBSCRIPTION
593
593
<para>
594
594
Example 2: Where the subscription says <literal>connect = false</literal>,
595
595
but also specifies the
596
- <link linkend="sql-createsubscription-with-slot-name"><literal>slot_name</literal></link>
596
+ <link linkend="sql-createsubscription-params- with-slot-name"><literal>slot_name</literal></link>
597
597
option.
598
598
<itemizedlist>
599
599
<listitem>
@@ -712,7 +712,7 @@ ALTER SUBSCRIPTION
712
712
then the row is not replicated. The <literal>WHERE</literal> clause expression
713
713
is evaluated with the same role used for the replication connection (i.e.
714
714
the role specified in the
715
- <link linkend="sql-createsubscription-connection"><literal>CONNECTION</literal></link>
715
+ <link linkend="sql-createsubscription-params- connection"><literal>CONNECTION</literal></link>
716
716
clause of the <xref linkend="sql-createsubscription"/>). Row filters have
717
717
no effect for <command>TRUNCATE</command> command.
718
718
</para>
@@ -805,7 +805,7 @@ ALTER SUBSCRIPTION
805
805
806
806
<para>
807
807
If the publication contains a partitioned table, the publication parameter
808
- <link linkend="sql-createpublication-with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
808
+ <link linkend="sql-createpublication-params- with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
809
809
determines which row filter is used. If <literal>publish_via_partition_root</literal>
810
810
is <literal>true</literal>, the <emphasis>root partitioned table's</emphasis>
811
811
row filter is used. Otherwise, if <literal>publish_via_partition_root</literal>
@@ -834,7 +834,7 @@ ALTER SUBSCRIPTION
834
834
<warning>
835
835
<para>
836
836
Because initial data synchronization does not take into account the
837
- <link linkend="sql-createpublication-with-publish"><literal>publish</literal></link>
837
+ <link linkend="sql-createpublication-params- with-publish"><literal>publish</literal></link>
838
838
parameter when copying existing table data, some rows may be copied that
839
839
would not be replicated using DML. Refer to
840
840
<xref linkend="logical-replication-snapshot"/>, and see
@@ -858,7 +858,7 @@ ALTER SUBSCRIPTION
858
858
<para>
859
859
If the subscription has several publications in which the same table has
860
860
been published with different row filters (for the same
861
- <link linkend="sql-createpublication-with-publish"><literal>publish</literal></link>
861
+ <link linkend="sql-createpublication-params- with-publish"><literal>publish</literal></link>
862
862
operation), those expressions get ORed together, so that rows satisfying
863
863
<emphasis>any</emphasis> of the expressions will be replicated. This means all
864
864
the other row filters for the same table become redundant if:
@@ -871,14 +871,14 @@ ALTER SUBSCRIPTION
871
871
<listitem>
872
872
<para>
873
873
One of the publications was created using
874
- <link linkend="sql-createpublication-for-all-tables"><literal>FOR ALL TABLES</literal></link>.
874
+ <link linkend="sql-createpublication-params- for-all-tables"><literal>FOR ALL TABLES</literal></link>.
875
875
This clause does not allow row filters.
876
876
</para>
877
877
</listitem>
878
878
<listitem>
879
879
<para>
880
880
One of the publications was created using
881
- <link linkend="sql-createpublication-for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
881
+ <link linkend="sql-createpublication-params- for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
882
882
and the table belongs to the referred schema. This clause does not allow
883
883
row filters.
884
884
</para>
@@ -1145,7 +1145,7 @@ test_sub=# SELECT * FROM t1;
1145
1145
1146
1146
<para>
1147
1147
The following examples show how the publication parameter
1148
- <link linkend="sql-createpublication-with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1148
+ <link linkend="sql-createpublication-params- with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1149
1149
determines whether the row filter of the parent or child table will be used
1150
1150
in the case of partitioned tables.
1151
1151
</para>
@@ -1300,13 +1300,13 @@ test_sub=# SELECT * FROM child ORDER BY a;
1300
1300
1301
1301
<para>
1302
1302
Specifying a column list when the publication also publishes
1303
- <link linkend="sql-createpublication-for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
1303
+ <link linkend="sql-createpublication-params- for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
1304
1304
is not supported.
1305
1305
</para>
1306
1306
1307
1307
<para>
1308
1308
For partitioned tables, the publication parameter
1309
- <link linkend="sql-createpublication-with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1309
+ <link linkend="sql-createpublication-params- with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1310
1310
determines which column list is used. If <literal>publish_via_partition_root</literal>
1311
1311
is <literal>true</literal>, the root partitioned table's column list is
1312
1312
used. Otherwise, if <literal>publish_via_partition_root</literal> is
@@ -1518,7 +1518,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
1518
1518
either by <link linkend="sql-altersubscription-params-disable">
1519
1519
<command>ALTER SUBSCRIPTION ... DISABLE</command></link> or, the
1520
1520
subscription can be used with the
1521
- <link linkend="sql-createsubscription-with-disable-on-error"><literal>disable_on_error</literal></link>
1521
+ <link linkend="sql-createsubscription-params- with-disable-on-error"><literal>disable_on_error</literal></link>
1522
1522
option. Then, you can use <function>pg_replication_origin_advance()</function>
1523
1523
function with the <parameter>node_name</parameter> (i.e., <literal>pg_16395</literal>)
1524
1524
and the next LSN of the finish LSN (i.e., 0/14C0379). The current position of
@@ -1531,7 +1531,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
1531
1531
1532
1532
<para>
1533
1533
When the
1534
- <link linkend="sql-createsubscription-with-streaming"><literal>streaming</literal></link>
1534
+ <link linkend="sql-createsubscription-params- with-streaming"><literal>streaming</literal></link>
1535
1535
mode is <literal>parallel</literal>, the finish LSN of failed transactions
1536
1536
may not be logged. In that case, it may be necessary to change the streaming
1537
1537
mode to <literal>on</literal> or <literal>off</literal> and cause the same
@@ -1624,7 +1624,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
1624
1624
using the identity and schema of the partitioned root table instead of
1625
1625
that of the individual leaf partitions in which the changes actually
1626
1626
originate (see
1627
- <link linkend="sql-createpublication-with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1627
+ <link linkend="sql-createpublication-params- with-publish-via-partition-root"><literal>publish_via_partition_root</literal></link>
1628
1628
parameter of <command>CREATE PUBLICATION</command>).
1629
1629
</para>
1630
1630
</listitem>
@@ -1709,7 +1709,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
1709
1709
<note>
1710
1710
<para>
1711
1711
The publication
1712
- <link linkend="sql-createpublication-with-publish"><literal>publish</literal></link>
1712
+ <link linkend="sql-createpublication-params- with-publish"><literal>publish</literal></link>
1713
1713
parameter only affects what DML operations will be replicated. The
1714
1714
initial data synchronization does not take this parameter into account
1715
1715
when copying the existing table data.
@@ -1743,7 +1743,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
1743
1743
zero rows in this view. If the initial data synchronization of any
1744
1744
table is in progress, there will be additional workers for the tables
1745
1745
being synchronized. Moreover, if the
1746
- <link linkend="sql-createsubscription-with-streaming"><literal>streaming</literal></link>
1746
+ <link linkend="sql-createsubscription-params- with-streaming"><literal>streaming</literal></link>
1747
1747
transaction is applied in parallel, there may be additional parallel apply
1748
1748
workers.
1749
1749
</para>