From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add new GUC reserved_connections.
Date: Fri, 20 Jan 2023 20:41:37 +0000
Message-ID: <E1pIyCe-004fVl-TO@gemulon.postgresql.org> (raw)
Add new GUC reserved_connections.
This provides a way to reserve connection slots for non-superusers.
The slots reserved via the new GUC are available only to users who
have the new predefined role pg_use_reserved_connections.
superuser_reserved_connections remains as a final reserve in case
reserved_connections has been exhausted.
Patch by Nathan Bossart. Reviewed by Tushar Ahuja and by me.
Discussion: http://postgr.es/m/20230119194601.GA4105788@nathanxps13
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6e2775e4d4e47775f0d933e4a93c148024a3bc63
Modified Files
--------------
doc/src/sgml/config.sgml | 39 +++++++++++++++++++++++++--
doc/src/sgml/user-manag.sgml | 5 ++++
src/backend/postmaster/postmaster.c | 29 +++++++++++++-------
src/backend/storage/lmgr/proc.c | 16 +++++++----
src/backend/utils/init/postinit.c | 31 +++++++++++++++------
src/backend/utils/misc/guc_tables.c | 11 ++++++++
src/backend/utils/misc/postgresql.conf.sample | 1 +
src/include/catalog/pg_authid.dat | 5 ++++
src/include/postmaster/postmaster.h | 1 +
src/include/storage/proc.h | 2 +-
10 files changed, 115 insertions(+), 25 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: Add new GUC reserved_connections.
In-Reply-To: <E1pIyCe-004fVl-TO@gemulon.postgresql.org>
References: <E1pIyCe-004fVl-TO@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox