From 2dca03439f1f88e9102aa6bf613b434be0697dae Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 2 Jul 2017 00:10:57 -0400 Subject: [PATCH] doc: Document that logical replication supports synchronous replication Update the documentation a bit to include that logical replication as well as other and third-party replication clients can participate in synchronous replication. --- doc/src/sgml/config.sgml | 29 ++++++++++++++++++--------- doc/src/sgml/high-availability.sgml | 12 +++++++++++ doc/src/sgml/logical-replication.sgml | 8 ++++++++ 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 2485e6190d..80d1679b14 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3074,7 +3074,19 @@ include_dir 'conf.d' (as shown by a state of streaming in the pg_stat_replication view). - Specifying more than one standby names can allow very high availability. + Specifying more than one synchronous standby can allow for very high + availability and protection against data loss. + + + The name of a standby server for this purpose is the + application_name setting of the standby, as set in the + standby's connection information. In case of a physical replication + standby, this should be set in the primary_conninfo + setting in recovery.conf; the default + is walreceiver. For logical replication, this can + be set in the connection information of the subscription, and it + defaults to the subscription name. For other replication stream + consumers, consult their documentation. This parameter specifies a list of standby servers using @@ -3136,15 +3148,12 @@ ANY num_sync ( + + A logical replication subscription can be a standby for synchronous + replication (see ). The standby + name is by default the subscription name. An alternative name can be + specified as application_name in the connection + information of the subscription. + + Subscriptions are dumped by pg_dump if the current user is a superuser. Otherwise a warning is written and subscriptions are