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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy