From 8362be35e82574801113a7fe4dfdc3037010fc04 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 21 Nov 2002 06:36:08 +0000 Subject: Code review for superuser_reserved_connections patch. Don't try to do database access outside a transaction; revert bogus performance improvement in SIBackendInit(); improve comments; add documentation (this part courtesy Neil Conway). --- doc/src/sgml/runtime.sgml | 55 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 16 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 70b29118a22..7ecd951a3b9 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1902,6 +1902,28 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' + + SUPERUSER_RESERVED_CONNECTIONS + (integer) + + + Determines the number of connection slots that + are reserved for connections by PostgreSQL + superusers. At most max_connections connections can + ever be active simultaneously. Whenever the number of active + concurrent connections is at least max_connections minus + superuser_reserved_connections, new connections + will be accepted only from superuser accounts. + + + + The default value is 2. The value must be less than the value of + max_connections. This parameter can only be + set at server start. + + + + TCPIP_SOCKET (boolean) @@ -2952,24 +2974,25 @@ $ kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid` - With SSL support compiled in, the PostgreSQL server - can be started with SSL support by setting the parameter - ssl to on in - postgresql.conf. When starting in SSL mode, - the server will look for the files server.key and - server.crt in the data directory. These files should - contain the server private key and certificate respectively. These - files must be set up correctly before an SSL-enabled server can - start. If the private key is protected with a passphrase, the - server will prompt for the passphrase and will not start until it - has been entered. + With SSL support compiled in, the + PostgreSQL server can be started with + SSL support by setting the parameter + ssl to on in postgresql.conf. When + starting in SSL mode, the server will look for the + files server.key and server.crt in the + data directory. These files should contain the server private key + and certificate respectively. These files must be set up correctly + before an SSL-enabled server can start. If the private key is + protected with a passphrase, the server will prompt for the + passphrase and will not start until it has been entered. - The server will listen for both standard and SSL connections on the - same TCP/IP port, and will negotiate with any connecting client on - whether to use SSL. See about - how to force the server to only use of SSL for certain connections. + The server will listen for both standard and SSL + connections on the same TCP/IP port, and will negotiate with any + connecting client on whether to use SSL. See about how to force the server to + require use of SSL for certain connections. -- cgit v1.2.3