From f3c440c34b22d35c03eb36d0f9adec694750d431 Mon Sep 17 00:00:00 2001 From: Hayato Kuroda Date: Wed, 22 Mar 2023 10:14:22 +0000 Subject: [PATCH] Add XML ID attributes to create_subscription.sgml --- doc/src/sgml/config.sgml | 4 +-- doc/src/sgml/logical-replication.sgml | 10 ++++---- doc/src/sgml/ref/alter_subscription.sgml | 16 ++++++------ doc/src/sgml/ref/create_subscription.sgml | 30 +++++++++++------------ doc/src/sgml/ref/pg_dump.sgml | 6 ++--- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 481f93cea1..2f9df090e4 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -11722,8 +11722,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1) On the publisher side, logical_replication_mode allows streaming or serializing changes immediately in logical decoding. When set to immediate, stream each change if the - streaming option (see optional parameters set by - CREATE SUBSCRIPTION) + option + (see optional parameters set by CREATE SUBSCRIPTION) is enabled, otherwise, serialize each change. When set to buffered, the decoding will stream or serialize changes when logical_decoding_work_mem is reached. diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml index 3836d13ad3..2fba6b93da 100644 --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -252,7 +252,7 @@ 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. However, logical replication in binary format is more - restrictive. See the binary + restrictive. See the binary option of CREATE SUBSCRIPTION for details. @@ -587,7 +587,7 @@ ALTER SUBSCRIPTION Example 2: Where the subscription says connect = false, - but also specifies the slot_name + but also specifies the @@ -1500,9 +1500,9 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER pg_replication_origin_advance() function. Before using this function, the subscription needs to be disabled temporarily either by ALTER SUBSCRIPTION ... DISABLE or, the - subscription can be used with the disable_on_error option. - Then, you can use pg_replication_origin_advance() function - with the node_name (i.e., pg_16395) + subscription can be used with the + option. Then, you can use pg_replication_origin_advance() + function with the node_name (i.e., pg_16395) and the next LSN of the finish LSN (i.e., 0/14C0379). The current position of origins can be seen in the pg_replication_origin_status system view. diff --git a/doc/src/sgml/ref/alter_subscription.sgml b/doc/src/sgml/ref/alter_subscription.sgml index e92346edef..ba6117ab87 100644 --- a/doc/src/sgml/ref/alter_subscription.sgml +++ b/doc/src/sgml/ref/alter_subscription.sgml @@ -71,8 +71,8 @@ ALTER SUBSCRIPTION name RENAME TO < executed inside a transaction block. These commands also cannot be executed when the subscription has - two_phase commit enabled, - unless copy_data is false. + commit enabled, + unless is false. See column subtwophasestate of pg_subscription to know the actual two-phase state. @@ -175,10 +175,10 @@ ALTER SUBSCRIPTION name RENAME TO < See for details of how copy_data = true can interact with the - origin parameter. + parameter. - See the binary + See the binary option of CREATE SUBSCRIPTION for details about copying pre-existing data in binary format. @@ -215,10 +215,10 @@ ALTER SUBSCRIPTION name RENAME TO < This clause alters parameters originally set by . See there for more information. The parameters that can be altered - are slot_name, - synchronous_commit, - binary, streaming, - disable_on_error, and + are , + , + binary, , + , and origin. diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 9d4b9d4e33..18d3e9df14 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -61,7 +61,7 @@ CREATE SUBSCRIPTION subscription_nameParameters - + subscription_name @@ -70,7 +70,7 @@ CREATE SUBSCRIPTION subscription_name - + CONNECTION 'conninfo' @@ -81,7 +81,7 @@ CREATE SUBSCRIPTION subscription_name - + PUBLICATION publication_name [, ...] @@ -90,7 +90,7 @@ CREATE SUBSCRIPTION subscription_name - + WITH ( subscription_parameter [= value] [, ... ] ) @@ -102,7 +102,7 @@ CREATE SUBSCRIPTION subscription_name - + connect (boolean) @@ -129,7 +129,7 @@ CREATE SUBSCRIPTION subscription_name - + create_slot (boolean) @@ -145,7 +145,7 @@ CREATE SUBSCRIPTION subscription_name - + enabled (boolean) @@ -156,7 +156,7 @@ CREATE SUBSCRIPTION subscription_name - + slot_name (string) @@ -185,7 +185,7 @@ CREATE SUBSCRIPTION subscription_name - + binary (boolean) @@ -222,7 +222,7 @@ CREATE SUBSCRIPTION subscription_name - + copy_data (boolean) @@ -243,7 +243,7 @@ CREATE SUBSCRIPTION subscription_name - + streaming (enum) @@ -271,7 +271,7 @@ CREATE SUBSCRIPTION subscription_name - + synchronous_commit (enum) @@ -303,7 +303,7 @@ CREATE SUBSCRIPTION subscription_name - + two_phase (boolean) @@ -334,7 +334,7 @@ CREATE SUBSCRIPTION subscription_name - + disable_on_error (boolean) @@ -346,7 +346,7 @@ CREATE SUBSCRIPTION subscription_name - + origin (string) diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index d6b1faa804..bd09547a78 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1458,9 +1458,9 @@ CREATE DATABASE foo WITH TEMPLATE template0; truncate the target tables before initiating a new full table copy. If users intend to copy initial data during refresh they must create the slot with two_phase = false. After the initial sync, the - two_phase option will be automatically enabled by the - subscriber if the subscription had been originally created with - two_phase = true option. + option will be + automatically enabled by the subscriber if the subscription had been + originally created with two_phase = true option. -- 2.27.0