]> granicus.if.org Git - pgbouncer/commitdiff
Use default values in config file
authorEuler Taveira <euler@timbira.com.br>
Fri, 8 Dec 2017 22:00:24 +0000 (22:00 +0000)
committerEuler Taveira <euler@timbira.com.br>
Fri, 8 Dec 2017 22:00:24 +0000 (22:00 +0000)
Instead of using arbritary values, use the default values. It is to
avoid surprises if you just remove comment character (;). I also did
some cosmetic changes. While at it, add some default information for
auth_user.

doc/config.rst
etc/pgbouncer.ini

index 3c7ac3634be5638833b410d1ddea5fba79be4cb6..292122db40a68df73f0b79af5730c0e54b3f0cfe 100644 (file)
@@ -159,6 +159,8 @@ using ``auth_user``. Auth_user's password will be taken from ``auth_file``.
 Direct access to pg_shadow requires admin rights.  It's preferable to
 use non-admin user that calls SECURITY DEFINER function instead.
 
+Default: not set.
+
 pool_mode
 ---------
 
index 3df66bb86600290c81e0b536b6d17c6f3228ce2f..df47061ae1bfbb92a81a348189f72de61574d835 100644 (file)
@@ -190,14 +190,14 @@ default_pool_size = 20
 ;min_pool_size = 0
 
 ; how many additional connection to allow in case of trouble
-;reserve_pool_size = 5
+;reserve_pool_size = 0
 
 ; if a clients needs to wait more than this many seconds, use reserve pool
-;reserve_pool_timeout = 3
+;reserve_pool_timeout = 5
 
 ; how many total connections to a single database to allow from all pools
-;max_db_connections = 50
-;max_user_connections = 50
+;max_db_connections = 0
+;max_user_connections = 0
 
 ; If off, then server connections are reused in LIFO manner
 ;server_round_robin = 0
@@ -224,18 +224,18 @@ default_pool_size = 20
 ;stats_period = 60
 
 ;; Logging verbosity.  Same as -v switch on command line.
-;verbose=0
+;verbose = 0
 
 ;;;
 ;;; Timeouts
 ;;;
 
 ;; Close server connection if its been connected longer.
-;server_lifetime = 1200
+;server_lifetime = 3600
 
 ;; Close server connection if its not been used in this time.
 ;; Allows to clean unnecessary connections from pool after peak.
-;server_idle_timeout = 60
+;server_idle_timeout = 600
 
 ;; Cancel connection attempt if server does not answer takes longer.
 ;server_connect_timeout = 15
@@ -330,7 +330,7 @@ default_pool_size = 20
 
 ;; Hackish security feature.  Helps against SQL-injection - when PQexec is disabled,
 ;; multi-statement cannot be made.
-;disable_pqexec=0
+;disable_pqexec = 0
 
 ;; Config file to use for next RELOAD/SIGHUP.
 ;; By default contains config file from command line.