From 23adc189870e5349e1d3e0a5470f3314809b5304 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Tue, 17 Oct 2023 18:24:42 +0100 Subject: [PATCH] Update pgbouncer to 1.21.0 + support prepared statements (#566) - update `pgbouncer` to [1.21.0](https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_1_21_0) - enable prepared statements support (https://www.pgbouncer.org/config.html#max_prepared_statements) See also https://github.com/neondatabase/cloud/pull/7381 --- neonvm/tools/vm-builder/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neonvm/tools/vm-builder/main.go b/neonvm/tools/vm-builder/main.go index ca47908ec..fea71a501 100644 --- a/neonvm/tools/vm-builder/main.go +++ b/neonvm/tools/vm-builder/main.go @@ -74,8 +74,8 @@ RUN set -e \ libevent-dev \ libssl-dev -ENV PGBOUNCER_VERSION 1.18.0 -ENV PGBOUNCER_GITPATH 1_18_0 +ENV PGBOUNCER_VERSION 1.21.0 +ENV PGBOUNCER_GITPATH 1_21_0 RUN set -e \ && curl -sfSL https://github.com/pgbouncer/pgbouncer/releases/download/pgbouncer_${PGBOUNCER_GITPATH}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz -o pgbouncer-${PGBOUNCER_VERSION}.tar.gz \ && tar xzvf pgbouncer-${PGBOUNCER_VERSION}.tar.gz \ @@ -375,6 +375,7 @@ server_tls_sslmode=disable pool_mode=transaction max_client_conn=10000 default_pool_size=16 +max_prepared_statements=100 ` )