File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -2114,12 +2114,16 @@ SET ENABLE_SEQSCAN TO OFF;
2114
2114
</indexterm>
2115
2115
<listitem>
2116
2116
<para>
2117
- Specifies the maximum number of concurrent connections from standby
2118
- servers or streaming base backup clients (i.e., the maximum number of
2119
- simultaneously running WAL sender
2120
- processes). The default is zero. This parameter can only be set at
2121
- server start. <varname>wal_level</> must be set to <literal>archive</>
2122
- or <literal>hot_standby</> to allow connections from standby servers.
2117
+ Specifies the maximum number of concurrent connections from
2118
+ standby servers or streaming base backup clients (i.e., the
2119
+ maximum number of simultaneously running WAL sender
2120
+ processes). The default is zero, meaning replication is
2121
+ disabled. WAL sender processes count towards the total number
2122
+ of connections, so the parameter cannot be set higher than
2123
+ <xref linkend="guc-max-connections">. This parameter can only
2124
+ be set at server start. <varname>wal_level</> must be set
2125
+ to <literal>archive</> or <literal>hot_standby</> to allow
2126
+ connections from standby servers.
2123
2127
</para>
2124
2128
</listitem>
2125
2129
</varlistentry>
Original file line number Diff line number Diff line change @@ -759,11 +759,16 @@ PostmasterMain(int argc, char *argv[])
759
759
/*
760
760
* Check for invalid combinations of GUC settings.
761
761
*/
762
- if (ReservedBackends >= MaxBackends )
762
+ if (ReservedBackends >= MaxConnections )
763
763
{
764
764
write_stderr ("%s: superuser_reserved_connections must be less than max_connections\n" , progname );
765
765
ExitPostmaster (1 );
766
766
}
767
+ if (max_wal_senders >= MaxConnections )
768
+ {
769
+ write_stderr ("%s: max_wal_senders must be less than max_connections\n" , progname );
770
+ ExitPostmaster (1 );
771
+ }
767
772
if (XLogArchiveMode && wal_level == WAL_LEVEL_MINIMAL )
768
773
ereport (ERROR ,
769
774
(errmsg ("WAL archival (archive_mode=on) requires wal_level \"archive\" or \"hot_standby\"" )));
You can’t perform that action at this time.
0 commit comments