@@ -3074,7 +3074,19 @@ include_dir 'conf.d'
3074
3074
(as shown by a state of <literal>streaming</literal> in the
3075
3075
<link linkend="monitoring-stats-views-table">
3076
3076
<literal>pg_stat_replication</></link> view).
3077
- Specifying more than one standby names can allow very high availability.
3077
+ Specifying more than one synchronous standby can allow for very high
3078
+ availability and protection against data loss.
3079
+ </para>
3080
+ <para>
3081
+ The name of a standby server for this purpose is the
3082
+ <varname>application_name</> setting of the standby, as set in the
3083
+ standby's connection information. In case of a physical replication
3084
+ standby, this should be set in the <varname>primary_conninfo</>
3085
+ setting in <filename>recovery.conf</filename>; the default
3086
+ is <literal>walreceiver</literal>. For logical replication, this can
3087
+ be set in the connection information of the subscription, and it
3088
+ defaults to the subscription name. For other replication stream
3089
+ consumers, consult their documentation.
3078
3090
</para>
3079
3091
<para>
3080
3092
This parameter specifies a list of standby servers using
@@ -3136,15 +3148,12 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
3136
3148
as a synchronous standby.
3137
3149
</para>
3138
3150
<para>
3139
- The name of a standby server for this purpose is the
3140
- <varname>application_name</> setting of the standby, as set in the
3141
- <varname>primary_conninfo</> of the standby's WAL receiver. There is
3142
- no mechanism to enforce uniqueness. In case of duplicates one of the
3143
- matching standbys will be considered as higher priority, though
3144
- exactly which one is indeterminate.
3145
- The special entry <literal>*</> matches any
3146
- <varname>application_name</>, including the default application name
3147
- of <literal>walreceiver</>.
3151
+ The special entry <literal>*</> matches any standby name.
3152
+ </para>
3153
+ <para>
3154
+ There is no mechanism to enforce uniqueness of standby names. In case
3155
+ of duplicates one of the matching standbys will be considered as
3156
+ higher priority, though exactly which one is indeterminate.
3148
3157
</para>
3149
3158
<note>
3150
3159
<para>
0 commit comments