Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4ede4f

Browse files
author
Amit Kapila
committed
Doc: Make link names consistent in logical replication commands.
Commit536f410 added links in the ALTER SUBSCRIPTION command page. Thelink names used were slightly different from what other logicalreplication commands like CREATE SUBSCRIPTION/PUBLICATION have but wereconsistent with other docs. This patch changes the link names for all theparameters to have 'params' word in the CREATE SUBSCRIPTION/PUBLICATIONpages.Author: Peter SmithReviewed-by: Amit KapilaDiscussion:http://postgr.es/m/CAHut%2BPu2S4RdzYKR7H5_E7QYWyq5hB0hL4EFrYbP91Qso62jeg%40mail.gmail.com
1 parent1ffdc03 commitc4ede4f

File tree

8 files changed

+64
-64
lines changed

8 files changed

+64
-64
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11702,7 +11702,7 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
1170211702
On the publisher side, <varname>debug_logical_replication_streaming</varname>
1170311703
allows streaming or serializing changes immediately in logical decoding.
1170411704
When set to <literal>immediate</literal>, stream each change if the
11705-
<link linkend="sql-createsubscription-with-streaming"><literal>streaming</literal></link>
11705+
<link linkend="sql-createsubscription-params-with-streaming"><literal>streaming</literal></link>
1170611706
option of
1170711707
<link linkend="sql-createsubscription"><command>CREATE SUBSCRIPTION</command></link>
1170811708
is enabled, otherwise, serialize each change. When set to

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
will be filled with the default value as specified in the definition of the
254254
target table. However, logical replication in binary format is more
255255
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>
257257
option of <command>CREATE SUBSCRIPTION</command> for details.
258258
</para>
259259

@@ -371,7 +371,7 @@ INSERT 0 3
371371
<para>
372372
Create publications for the tables. The publications <literal>pub2</literal>
373373
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>
375375
operations. The publication <literal>pub3b</literal> has a row filter (see
376376
<xref linkend="logical-replication-row-filter"/>).
377377
<programlisting>
@@ -593,7 +593,7 @@ ALTER SUBSCRIPTION
593593
<para>
594594
Example 2: Where the subscription says <literal>connect = false</literal>,
595595
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>
597597
option.
598598
<itemizedlist>
599599
<listitem>
@@ -712,7 +712,7 @@ ALTER SUBSCRIPTION
712712
then the row is not replicated. The <literal>WHERE</literal> clause expression
713713
is evaluated with the same role used for the replication connection (i.e.
714714
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>
716716
clause of the <xref linkend="sql-createsubscription"/>). Row filters have
717717
no effect for <command>TRUNCATE</command> command.
718718
</para>
@@ -805,7 +805,7 @@ ALTER SUBSCRIPTION
805805

806806
<para>
807807
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>
809809
determines which row filter is used. If <literal>publish_via_partition_root</literal>
810810
is <literal>true</literal>, the <emphasis>root partitioned table's</emphasis>
811811
row filter is used. Otherwise, if <literal>publish_via_partition_root</literal>
@@ -834,7 +834,7 @@ ALTER SUBSCRIPTION
834834
<warning>
835835
<para>
836836
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>
838838
parameter when copying existing table data, some rows may be copied that
839839
would not be replicated using DML. Refer to
840840
<xref linkend="logical-replication-snapshot"/>, and see
@@ -858,7 +858,7 @@ ALTER SUBSCRIPTION
858858
<para>
859859
If the subscription has several publications in which the same table has
860860
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>
862862
operation), those expressions get ORed together, so that rows satisfying
863863
<emphasis>any</emphasis> of the expressions will be replicated. This means all
864864
the other row filters for the same table become redundant if:
@@ -871,14 +871,14 @@ ALTER SUBSCRIPTION
871871
<listitem>
872872
<para>
873873
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>.
875875
This clause does not allow row filters.
876876
</para>
877877
</listitem>
878878
<listitem>
879879
<para>
880880
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>
882882
and the table belongs to the referred schema. This clause does not allow
883883
row filters.
884884
</para>
@@ -1145,7 +1145,7 @@ test_sub=# SELECT * FROM t1;
11451145

11461146
<para>
11471147
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>
11491149
determines whether the row filter of the parent or child table will be used
11501150
in the case of partitioned tables.
11511151
</para>
@@ -1300,13 +1300,13 @@ test_sub=# SELECT * FROM child ORDER BY a;
13001300

13011301
<para>
13021302
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>
13041304
is not supported.
13051305
</para>
13061306

13071307
<para>
13081308
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>
13101310
determines which column list is used. If <literal>publish_via_partition_root</literal>
13111311
is <literal>true</literal>, the root partitioned table's column list is
13121312
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
15181518
either by <link linkend="sql-altersubscription-params-disable">
15191519
<command>ALTER SUBSCRIPTION ... DISABLE</command></link> or, the
15201520
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>
15221522
option. Then, you can use <function>pg_replication_origin_advance()</function>
15231523
function with the <parameter>node_name</parameter> (i.e., <literal>pg_16395</literal>)
15241524
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
15311531

15321532
<para>
15331533
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>
15351535
mode is <literal>parallel</literal>, the finish LSN of failed transactions
15361536
may not be logged. In that case, it may be necessary to change the streaming
15371537
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
16241624
using the identity and schema of the partitioned root table instead of
16251625
that of the individual leaf partitions in which the changes actually
16261626
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>
16281628
parameter of <command>CREATE PUBLICATION</command>).
16291629
</para>
16301630
</listitem>
@@ -1709,7 +1709,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
17091709
<note>
17101710
<para>
17111711
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>
17131713
parameter only affects what DML operations will be replicated. The
17141714
initial data synchronization does not take this parameter into account
17151715
when copying the existing table data.
@@ -1743,7 +1743,7 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER
17431743
zero rows in this view. If the initial data synchronization of any
17441744
table is in progress, there will be additional workers for the tables
17451745
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>
17471747
transaction is applied in parallel, there may be additional parallel apply
17481748
workers.
17491749
</para>

‎doc/src/sgml/ref/alter_publication.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ALTER PUBLICATION <replaceable class="parameter">name</replaceable> RENAME TO <r
5656
subscribing side in order to become effective. Note also that
5757
<literal>DROP TABLES IN SCHEMA</literal> will not drop any schema tables
5858
that were specified using
59-
<link linkend="sql-createpublication-for-table"><literal>FOR TABLE</literal></link>/
59+
<link linkend="sql-createpublication-params-for-table"><literal>FOR TABLE</literal></link>/
6060
<literal>ADD TABLE</literal>, and the combination of <literal>DROP</literal>
6161
with a <literal>WHERE</literal> clause is not allowed.
6262
</para>
@@ -82,8 +82,8 @@ ALTER PUBLICATION <replaceable class="parameter">name</replaceable> RENAME TO <r
8282
new owning role, and that role must have <literal>CREATE</literal>
8383
privilege on the database.
8484
Also, the new owner of a
85-
<link linkend="sql-createpublication-for-all-tables"><literal>FOR ALL TABLES</literal></link>
86-
or <link linkend="sql-createpublication-for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
85+
<link linkend="sql-createpublication-params-for-all-tables"><literal>FOR ALL TABLES</literal></link>
86+
or <link linkend="sql-createpublication-params-for-tables-in-schema"><literal>FOR TABLES IN SCHEMA</literal></link>
8787
publication must be a superuser. However, a superuser can
8888
change the ownership of a publication regardless of these restrictions.
8989
</para>

‎doc/src/sgml/ref/alter_subscription.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
7272
executed inside a transaction block.
7373

7474
These commands also cannot be executed when the subscription has
75-
<link linkend="sql-createsubscription-with-two-phase"><literal>two_phase</literal></link>
75+
<link linkend="sql-createsubscription-params-with-two-phase"><literal>two_phase</literal></link>
7676
commit enabled, unless
77-
<link linkend="sql-createsubscription-with-copy-data"><literal>copy_data</literal></link>
77+
<link linkend="sql-createsubscription-params-with-copy-data"><literal>copy_data</literal></link>
7878
is <literal>false</literal>. See column <structfield>subtwophasestate</structfield>
7979
of <link linkend="catalog-pg-subscription"><structname>pg_subscription</structname></link>
8080
to know the actual two-phase state.
@@ -178,12 +178,12 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
178178
<para>
179179
See <xref linkend="sql-createsubscription-notes"/> for details of
180180
how <literal>copy_data = true</literal> can interact with the
181-
<link linkend="sql-createsubscription-with-origin"><literal>origin</literal></link>
181+
<link linkend="sql-createsubscription-params-with-origin"><literal>origin</literal></link>
182182
parameter.
183183
</para>
184184
<para>
185185
See the
186-
<link linkend="sql-createsubscription-with-binary"><literal>binary</literal></link>
186+
<link linkend="sql-createsubscription-params-with-binary"><literal>binary</literal></link>
187187
parameter of <command>CREATE SUBSCRIPTION</command> for details about
188188
copying pre-existing data in binary format.
189189
</para>
@@ -220,14 +220,14 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
220220
This clause alters parameters originally set by
221221
<xref linkend="sql-createsubscription"/>. See there for more
222222
information. The parameters that can be altered are
223-
<link linkend="sql-createsubscription-with-slot-name"><literal>slot_name</literal></link>,
224-
<link linkend="sql-createsubscription-with-synchronous-commit"><literal>synchronous_commit</literal></link>,
225-
<link linkend="sql-createsubscription-with-binary"><literal>binary</literal></link>,
226-
<link linkend="sql-createsubscription-with-streaming"><literal>streaming</literal></link>,
227-
<link linkend="sql-createsubscription-with-disable-on-error"><literal>disable_on_error</literal></link>,
228-
<link linkend="sql-createsubscription-with-password-required"><literal>password_required</literal></link>,
229-
<link linkend="sql-createsubscription-with-run-as-owner"><literal>run_as_owner</literal></link>, and
230-
<link linkend="sql-createsubscription-with-origin"><literal>origin</literal></link>.
223+
<link linkend="sql-createsubscription-params-with-slot-name"><literal>slot_name</literal></link>,
224+
<link linkend="sql-createsubscription-params-with-synchronous-commit"><literal>synchronous_commit</literal></link>,
225+
<link linkend="sql-createsubscription-params-with-binary"><literal>binary</literal></link>,
226+
<link linkend="sql-createsubscription-params-with-streaming"><literal>streaming</literal></link>,
227+
<link linkend="sql-createsubscription-params-with-disable-on-error"><literal>disable_on_error</literal></link>,
228+
<link linkend="sql-createsubscription-params-with-password-required"><literal>password_required</literal></link>,
229+
<link linkend="sql-createsubscription-params-with-run-as-owner"><literal>run_as_owner</literal></link>, and
230+
<link linkend="sql-createsubscription-params-with-origin"><literal>origin</literal></link>.
231231
Only a superuser can set <literal>password_required = false</literal>.
232232
</para>
233233
</listitem>
@@ -243,7 +243,7 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
243243
the logical replication worker skips all data modification changes within
244244
the transaction. This option has no effect on the transactions that are
245245
already prepared by enabling
246-
<link linkend="sql-createsubscription-with-two-phase"><literal>two_phase</literal></link>
246+
<link linkend="sql-createsubscription-params-with-two-phase"><literal>two_phase</literal></link>
247247
on the subscriber.
248248
After the logical replication worker successfully skips the transaction or
249249
finishes a transaction, the LSN (stored in

‎doc/src/sgml/ref/create_publication.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
5454
<title>Parameters</title>
5555

5656
<variablelist>
57-
<varlistentry id="sql-createpublication-name">
57+
<varlistentry id="sql-createpublication-params-name">
5858
<term><replaceable class="parameter">name</replaceable></term>
5959
<listitem>
6060
<para>
@@ -63,7 +63,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
6363
</listitem>
6464
</varlistentry>
6565

66-
<varlistentry id="sql-createpublication-for-table">
66+
<varlistentry id="sql-createpublication-params-for-table">
6767
<term><literal>FOR TABLE</literal></term>
6868
<listitem>
6969
<para>
@@ -117,7 +117,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
117117
</listitem>
118118
</varlistentry>
119119

120-
<varlistentry id="sql-createpublication-for-all-tables">
120+
<varlistentry id="sql-createpublication-params-for-all-tables">
121121
<term><literal>FOR ALL TABLES</literal></term>
122122
<listitem>
123123
<para>
@@ -127,7 +127,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
127127
</listitem>
128128
</varlistentry>
129129

130-
<varlistentry id="sql-createpublication-for-tables-in-schema">
130+
<varlistentry id="sql-createpublication-params-for-tables-in-schema">
131131
<term><literal>FOR TABLES IN SCHEMA</literal></term>
132132
<listitem>
133133
<para>
@@ -158,15 +158,15 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
158158
</listitem>
159159
</varlistentry>
160160

161-
<varlistentry id="sql-createpublication-with">
161+
<varlistentry id="sql-createpublication-params-with">
162162
<term><literal>WITH ( <replaceable class="parameter">publication_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] )</literal></term>
163163
<listitem>
164164
<para>
165165
This clause specifies optional parameters for a publication. The
166166
following parameters are supported:
167167

168168
<variablelist>
169-
<varlistentry id="sql-createpublication-with-publish">
169+
<varlistentry id="sql-createpublication-params-with-publish">
170170
<term><literal>publish</literal> (<type>string</type>)</term>
171171
<listitem>
172172
<para>
@@ -188,7 +188,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
188188
</listitem>
189189
</varlistentry>
190190

191-
<varlistentry id="sql-createpublication-with-publish-via-partition-root">
191+
<varlistentry id="sql-createpublication-params-with-publish-via-partition-root">
192192
<term><literal>publish_via_partition_root</literal> (<type>boolean</type>)</term>
193193
<listitem>
194194
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp