doc: add missing options to sample config
authorMarko Kreen <markokr@gmail.com>
Fri, 31 Jul 2015 09:10:31 +0000 (12:10 +0300)
committerMarko Kreen <markokr@gmail.com>
Fri, 31 Jul 2015 09:10:31 +0000 (12:10 +0300)
etc/pgbouncer.ini

index b57f9866aaaff7e8535f8671defaa982c7e13be8..4a84094a560e1a7f79c6afe9a6ba522efd1797ee 100644 (file)
@@ -54,6 +54,10 @@ auth_type = trust
 ;auth_file = /8.0/main/global/pg_auth
 auth_file = /etc/pgbouncer/userlist.txt
 
+;; Query to use to fetch password from database.  Result
+;; must have 2 columns - username and password hash.
+;auth_query = SELECT usename, passwd FROM pg_shadow WHERE usename=$1
+
 ;;;
 ;;; Users allowed into database 'pgbouncer'
 ;;;
@@ -106,6 +110,9 @@ server_reset_query = DISCARD ALL
 ; skip the check query.  Value 0 may or may not run in immediately.
 ;server_check_delay = 30
 
+;; Use <appname - host> as application_name on server.
+;application_name_add_host = 1
+
 ;;;
 ;;; Connection limits
 ;;;
@@ -118,6 +125,9 @@ max_client_conn = 100
 ; max clients you want to handle at any moment
 default_pool_size = 20
 
+;; Minimum number of server connections to keep in pool.
+;min_pool_size = 0
+
 ; how many additional connection to allow in case of trouble
 ;reserve_pool_size = 5
 
@@ -128,6 +138,18 @@ default_pool_size = 20
 ;max_db_connections = 50
 ;max_user_connections = 50
 
+; If off, then server connections are reused in LIFO manner
+;server_round_robin = 0
+
+;;;
+;;; Logging
+;;;
+
+;; Syslog settings
+;syslog = 0
+;syslog_facility = daemon
+;syslog_ident = pgbouncer
+
 ; log if client connects or server connection is made
 ;log_connections = 1
 
@@ -137,9 +159,11 @@ default_pool_size = 20
 ; log error messages pooler sends to clients
 ;log_pooler_errors = 1
 
+;; Period for writing aggregated stats into log.
+;stats_period = 60
 
-; If off, then server connections are reused in LIFO manner
-;server_round_robin = 0
+;; Logging verbosity.  Same as -v switch on command line.
+;verbose=0
 
 ;;;
 ;;; Timeouts
@@ -181,6 +205,13 @@ default_pool_size = 20
 ;; stay unused in this many seconds.
 ; autodb_idle_timeout = 3600
 
+;; How long SUSPEND/-R waits for buffer flush before closing connection.
+;suspend_timeout = 10
+
+;; Close connections which are in "IDLE in transaction" state longer than
+;; this many seconds.
+;idle_transaction_timeout = 0
+
 ;;;
 ;;; Low-level tuning options
 ;;;
@@ -191,6 +222,12 @@ default_pool_size = 20
 ;; man 2 listen
 ;listen_backlog = 128
 
+;; Max number pkt_buf to process in one event loop.
+;sbuf_loopcnt = 5
+
+;; Maximum Postgres protocol packet size.
+;max_packet_size = 2147483647
+
 ;; networking options, for info: man 7 tcp
 
 ;; Linux: notify program about new connection only if there
@@ -223,3 +260,23 @@ default_pool_size = 20
 ;; DNS zone SOA lookup period
 ;dns_zone_check_period = 0
 
+;; DNS negative result caching time
+;dns_nxdomain_ttl = 15
+
+;;;
+;;; Random stuff
+;;;
+
+;; Hackish security feature.  Helps against SQL-injection - when PQexec is disabled,
+;; multi-statement cannot be made.
+;disable_pqexec=0
+
+;; Config file to use for next RELOAD/SIGHUP.
+;; By default contains config file from command line.
+;conffile
+
+;; Win32 service name to register as.  job_name is alias for service_name,
+;; used by some Skytools scripts.
+;service_name = pgbouncer
+;job_name = pgbouncer
+