aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2023-01-20 15:32:08 -0500
committerRobert Haas <rhaas@postgresql.org>2023-01-20 15:32:08 -0500
commitfe00fec1f5d78a5cfe46ac72dc284ed4cc477be1 (patch)
treef0040cae7766032cd67194e19e81a67187c28e06 /src/backend/utils/init/postinit.c
parent6c1d5ba4867828b387799a291cea9aaee2a8e3fc (diff)
downloadpostgresql-fe00fec1f5d78a5cfe46ac72dc284ed4cc477be1.tar.gz
postgresql-fe00fec1f5d78a5cfe46ac72dc284ed4cc477be1.zip
Rename ReservedBackends variable to SuperuserReservedConnections.
This is in preparation for adding a new reserved_connections GUC, but aligning the GUC name with the variable name is also a good idea on general principle. Patch by Nathan Bossart. Reviewed by Tushar Ahuja and by me. Discussion: http://postgr.es/m/20230119194601.GA4105788@nathanxps13
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 9145d96b385..40f145e0ab1 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -927,8 +927,8 @@ InitPostgres(const char *in_dbname, Oid dboid,
* limited by max_connections or superuser_reserved_connections.
*/
if (!am_superuser && !am_walsender &&
- ReservedBackends > 0 &&
- !HaveNFreeProcs(ReservedBackends))
+ SuperuserReservedConnections > 0 &&
+ !HaveNFreeProcs(SuperuserReservedConnections))
ereport(FATAL,
(errcode(ERRCODE_TOO_MANY_CONNECTIONS),
errmsg("remaining connection slots are reserved for superusers")));