diff --git a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh index c80cdf37a8a6..047ee57e3afd 100644 --- a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh +++ b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh @@ -268,6 +268,7 @@ pgbouncer_initialize() { "pool_mode:${PGBOUNCER_POOL_MODE}" "max_client_conn:${PGBOUNCER_MAX_CLIENT_CONN}" "max_db_connections:${PGBOUNCER_MAX_DB_CONNECTIONS}" + "max_prepared_statements:${PGBOUNCER_MAX_PREPARED_STATEMENTS}" "idle_transaction_timeout:${PGBOUNCER_IDLE_TRANSACTION_TIMEOUT}" "server_idle_timeout:${PGBOUNCER_SERVER_IDLE_TIMEOUT}" "server_reset_query:${PGBOUNCER_SERVER_RESET_QUERY}" diff --git a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh index f1090b6fdf0d..1df9927b51af 100644 --- a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh +++ b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh @@ -39,6 +39,7 @@ pgbouncer_env_vars=( PGBOUNCER_QUERY_WAIT_TIMEOUT PGBOUNCER_MAX_CLIENT_CONN PGBOUNCER_MAX_DB_CONNECTIONS + PGBOUNCER_MAX_PREPARED_STATEMENTS PGBOUNCER_IDLE_TRANSACTION_TIMEOUT PGBOUNCER_SERVER_IDLE_TIMEOUT PGBOUNCER_SERVER_RESET_QUERY @@ -129,6 +130,7 @@ export PGBOUNCER_INIT_MAX_RETRIES="${PGBOUNCER_INIT_MAX_RETRIES:-10}" export PGBOUNCER_QUERY_WAIT_TIMEOUT="${PGBOUNCER_QUERY_WAIT_TIMEOUT:-}" export PGBOUNCER_MAX_CLIENT_CONN="${PGBOUNCER_MAX_CLIENT_CONN:-}" export PGBOUNCER_MAX_DB_CONNECTIONS="${PGBOUNCER_MAX_DB_CONNECTIONS:-}" +export PGBOUNCER_MAX_PREPARED_STATEMENTS="${PGBOUNCER_MAX_PREPARED_STATEMENTS:-}" export PGBOUNCER_IDLE_TRANSACTION_TIMEOUT="${PGBOUNCER_IDLE_TRANSACTION_TIMEOUT:-}" export PGBOUNCER_SERVER_IDLE_TIMEOUT="${PGBOUNCER_SERVER_IDLE_TIMEOUT:-}" export PGBOUNCER_SERVER_RESET_QUERY="${PGBOUNCER_SERVER_RESET_QUERY:-}" diff --git a/bitnami/pgbouncer/README.md b/bitnami/pgbouncer/README.md index 26574e999051..face592f97d8 100644 --- a/bitnami/pgbouncer/README.md +++ b/bitnami/pgbouncer/README.md @@ -127,6 +127,7 @@ To expose the same database name as the backend, set `PGBOUNCER_DATABASE="$POSTG * `PGBOUNCER_QUERY_WAIT_TIMEOUT` : PgBouncer maximum time queries are allowed to spend waiting for execution. Default: **120**. * `PGBOUNCER_MAX_CLIENT_CONN` : PgBouncer maximum number of client connections allowed. Default: **120**. * `PGBOUNCER_MAX_DB_CONNECTIONS` : PgBouncer maximum number of database connections allowed. Default: **0 (unlimited)**. +* `PGBOUNCER_MAX_PREPARED_STATEMENTS` : PgBouncer will cache this number of active protocol-level named prepared statements sent by the client in transaction and statement pooling mode. Default: **0 (disabled)**. * `PGBOUNCER_IDLE_TRANSACTION_TIMEOUT` : PgBouncer maximum time for a client to be in "idle in transaction" state. Default: **0.0**. * `PGBOUNCER_DEFAULT_POOL_SIZE` : PgBouncer maximum server connections to allow per user/database pair. Default: **20**. * `PGBOUNCER_MIN_POOL_SIZE` : PgBouncer has at least this amount of open connections. Default: **0 (disabled)**.