From c3d27c367b4316d698fe8d6372ec88d8561ad6fa Mon Sep 17 00:00:00 2001 From: ace Date: Tue, 19 Mar 2024 14:08:09 +0300 Subject: [PATCH] add postgresql 16 support --- defaults/main.yaml | 2 ++ templates/pgbouncer.ini.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 4dd52d8..df44f27 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -12,6 +12,7 @@ pgbouncer_systemd_group: "pgbouncer" pgbouncer_max_client_conn: 10000 pgbouncer_max_db_connections: 1000 pgbouncer_default_pool_size: 20 +pgbouncer_reserve_pool_size: 5 pgbouncer_default_pool_mode: "session" pgbouncer_ignore_startup_parameters: "extra_float_digits,geqo" pgbouncer_auth_type: "hba" @@ -45,3 +46,4 @@ pgbouncer_postgresql_supported_versions: - 13 - 14 - 15 + - 16 diff --git a/templates/pgbouncer.ini.j2 b/templates/pgbouncer.ini.j2 index 6898e01..1470e5c 100644 --- a/templates/pgbouncer.ini.j2 +++ b/templates/pgbouncer.ini.j2 @@ -36,7 +36,7 @@ pool_mode = {{ pgbouncer_default_pool_mode }} server_reset_query = DISCARD ALL max_client_conn = {{ pgbouncer_max_client_conn }} default_pool_size = {{ pgbouncer_default_pool_size }} -reserve_pool_size = 1 +reserve_pool_size = {{ pgbouncer_reserve_pool_size }} reserve_pool_timeout = 1 max_db_connections = {{ pgbouncer_max_db_connections }} pkt_buf = 8192