;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'
;;;
; 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
;;;
; 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
;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
; 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
;; 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
;;;
;; 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
;; 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
+