diff options
| author | Robert Haas | 2023-01-20 20:36:36 +0000 |
|---|---|---|
| committer | Robert Haas | 2023-01-20 20:39:13 +0000 |
| commit | 6e2775e4d4e47775f0d933e4a93c148024a3bc63 (patch) | |
| tree | 41a9343dad0b900d899ebd04e9d22afd7976768f /src/include/postmaster | |
| parent | fe00fec1f5d78a5cfe46ac72dc284ed4cc477be1 (diff) | |
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
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/postmaster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/postmaster/postmaster.h b/src/include/postmaster/postmaster.h index 0e4b8ded344..3b3889c58c0 100644 --- a/src/include/postmaster/postmaster.h +++ b/src/include/postmaster/postmaster.h @@ -16,6 +16,7 @@ /* GUC options */ extern PGDLLIMPORT bool EnableSSL; extern PGDLLIMPORT int SuperuserReservedConnections; +extern PGDLLIMPORT int ReservedConnections; extern PGDLLIMPORT int PostPortNumber; extern PGDLLIMPORT int Unix_socket_permissions; extern PGDLLIMPORT char *Unix_socket_group; |
