]> granicus.if.org Git - pgbouncer/commitdiff
Add [users] section to example config file
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 3 Aug 2019 11:51:02 +0000 (13:51 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 3 Aug 2019 11:51:02 +0000 (13:51 +0200)
Also add some missing documentation about the [users] section.

Reported-by: @brunomgalmeida
fixes #330

doc/config.md
etc/pgbouncer.ini

index da644457f797e63e4954df7f3d2a254db04d6338..311f15e7456aaeaa1a428f9bd7ea49a877f04048 100644 (file)
@@ -841,15 +841,21 @@ Ask specific **timezone** from server.
 
 ## Section [users]
 
-This contains key=value pairs where key will be taken as a user name and
-value as a libpq connect-string style list of key=value pairs. As actual libpq is not
-used, so not all features from libpq can be used.
+This contains key=value pairs where the key will be taken as a user name and
+the value as a libpq connect-string style list of key=value pairs of
+configuration settings specific for this user.  Only a few settings
+are available here.
 
 ### pool_mode
 
 Set the pool mode to be used for all connections from this user. If not set, the
 database or default pool_mode is used.
 
+### max_user_connections
+
+Configure a maximum for the user (i.e. all pools with the user will
+not have more than this many server connections).
+
 
 ## Include directive
 
index fed6db12b80e257e0e2c9f9cf5046e677e13ee8d..eb582cd069cc8beffcd5ba830c35408b640a0190 100644 (file)
 ; fallback connect string
 ;* = host=testserver
 
+;; User-specific configuration
+[users]
+
+user1 = pool_mode=transaction max_user_connections=10
+
 ;; Configuration section
 [pgbouncer]