Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6c1d5ba

Browse files
committed
Update docs and error message for superuser_reserved_connections.
Commit ea92368 made max_wal_senders a separate pool of backends from max_connections, but the documentation and error message for superuser_reserved_connections weren't updated at the time, and as a result are somewhat misleading. Update. This is arguably a back-patchable bug fix, but because it seems quite minor, no back-patch. Patch by Nathan Bossart. Reviewed by Tushar Ahuja and by me. Discussion: http://postgr.es/m/20230119194601.GA4105788@nathanxps13
1 parent e86c8b7 commit 6c1d5ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/src/sgml/config.sgml

+1-2
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@ include_dir 'conf.d'
725725
number of active concurrent connections is at least
726726
<varname>max_connections</varname> minus
727727
<varname>superuser_reserved_connections</varname>, new
728-
connections will be accepted only for superusers, and no
729-
new replication connections will be accepted.
728+
connections will be accepted only for superusers.
730729
</para>
731730

732731
<para>

src/backend/utils/init/postinit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ InitPostgres(const char *in_dbname, Oid dboid,
931931
!HaveNFreeProcs(ReservedBackends))
932932
ereport(FATAL,
933933
(errcode(ERRCODE_TOO_MANY_CONNECTIONS),
934-
errmsg("remaining connection slots are reserved for non-replication superuser connections")));
934+
errmsg("remaining connection slots are reserved for superusers")));
935935

936936
/* Check replication permissions needed for walsender processes. */
937937
if (am_walsender)

0 commit comments

Comments
 (0)