Skip to content

Commit a2b421e

Browse files
authored
Merge pull request #5 from adriagalin/master
Fix pgbouncer default template file name
2 parents e659c08 + 7fccf1d commit a2b421e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

templates/pgbouncer.ini.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,12 @@ reserve_pool_size = {{ pgbouncer_reserve_pool_size }}
148148
reserve_pool_timeout = {{ pgbouncer_reserve_pool_timeout }}
149149

150150
; how many total connections to a single database to allow from all pools
151+
{% if pgbouncer_max_db_connections != -1 %}
151152
max_db_connections = {{ pgbouncer_max_db_connections }}
153+
{% endif %}
154+
{% if pgbouncer_max_user_connections != -1 %}
152155
max_user_connections = {{ pgbouncer_max_user_connections }}
156+
{% endif %}
153157

154158
; If off, then server connections are reused in LIFO manner
155159
server_round_robin = {{ pgbouncer_server_round_robin }}
File renamed without changes.

0 commit comments

Comments
 (0)