File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -1908,11 +1908,16 @@ SET ENABLE_SEQSCAN TO OFF;
1908
1908
</indexterm>
1909
1909
<listitem>
1910
1910
<para>
1911
- Specifies the maximum number of concurrent connections from standby
1912
- servers (i.e., the maximum number of simultaneously running WAL sender
1913
- processes). The default is zero. This parameter can only be set at
1914
- server start. <varname>wal_level</> must be set to <literal>archive</>
1915
- or <literal>hot_standby</> to allow connections from standby servers.
1911
+ Specifies the maximum number of concurrent connections from
1912
+ standby servers (i.e., the
1913
+ maximum number of simultaneously running WAL sender
1914
+ processes). The default is zero, meaning replication is
1915
+ disabled. WAL sender processes count towards the total number
1916
+ of connections, so the parameter cannot be set higher than
1917
+ <xref linkend="guc-max-connections">. This parameter can only
1918
+ be set at server start. <varname>wal_level</> must be set
1919
+ to <literal>archive</> or <literal>hot_standby</> to allow
1920
+ connections from standby servers.
1916
1921
</para>
1917
1922
</listitem>
1918
1923
</varlistentry>
Original file line number Diff line number Diff line change @@ -724,11 +724,16 @@ PostmasterMain(int argc, char *argv[])
724
724
/*
725
725
* Check for invalid combinations of GUC settings.
726
726
*/
727
- if (ReservedBackends >= MaxBackends )
727
+ if (ReservedBackends >= MaxConnections )
728
728
{
729
729
write_stderr ("%s: superuser_reserved_connections must be less than max_connections\n" , progname );
730
730
ExitPostmaster (1 );
731
731
}
732
+ if (max_wal_senders >= MaxConnections )
733
+ {
734
+ write_stderr ("%s: max_wal_senders must be less than max_connections\n" , progname );
735
+ ExitPostmaster (1 );
736
+ }
732
737
if (XLogArchiveMode && wal_level == WAL_LEVEL_MINIMAL )
733
738
ereport (ERROR ,
734
739
(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