[bitnami/pgbouncer] Add max_prepared_statements to available environment variables (#51902)

This commit is contained in:
Alexander Bayandin
2023-10-17 08:37:24 +01:00
committed by GitHub
parent f77abd8f31
commit 25ba3003a3
3 changed files with 4 additions and 0 deletions

View File

@@ -290,6 +290,7 @@ pgbouncer_initialize() {
"query_timeout:${PGBOUNCER_QUERY_TIMEOUT}"
"query_wait_timeout:${PGBOUNCER_QUERY_WAIT_TIMEOUT}"
"client_idle_timeout:${PGBOUNCER_CLIENT_IDLE_TIMEOUT}"
"max_prepared_statements:${PGBOUNCER_MAX_PREPARED_STATEMENTS}"
)
for pair in "${key_value_pairs[@]}"; do
local key value

View File

@@ -86,6 +86,7 @@ pgbouncer_env_vars=(
PGBOUNCER_SOCKET_GROUP
PGBOUNCER_DAEMON_USER
PGBOUNCER_DAEMON_GROUP
PGBOUNCER_MAX_PREPARED_STATEMENTS
)
for env_var in "${pgbouncer_env_vars[@]}"; do
file_env_var="${env_var}_FILE"
@@ -138,6 +139,7 @@ export PGBOUNCER_RESERVE_POOL_TIMEOUT="${PGBOUNCER_RESERVE_POOL_TIMEOUT:-}"
export PGBOUNCER_IGNORE_STARTUP_PARAMETERS="${PGBOUNCER_IGNORE_STARTUP_PARAMETERS:-}"
export PGBOUNCER_EXTRA_FLAGS="${PGBOUNCER_EXTRA_FLAGS:-}"
export PGBOUNCER_STATS_PERIOD="${PGBOUNCER_STATS_PERIOD:-60}"
export PGBOUNCER_MAX_PREPARED_STATEMENTS="${PGBOUNCER_MAX_PREPARED_STATEMENTS:-}"
# Client TLS settings
export PGBOUNCER_CLIENT_TLS_SSLMODE="${PGBOUNCER_CLIENT_TLS_SSLMODE:-disable}"

View File

@@ -135,6 +135,7 @@ To expose the same database name as the backend, set `PGBOUNCER_DATABASE="$POSTG
* `PGBOUNCER_SERVER_IDLE_TIMEOUT`: PgBouncer maximum time in seconds a server connection can be idle. If 0 then the timeout is disabled. Default: **600**
* `PGBOUNCER_SERVER_RESET_QUERY`: PgBouncer query sent to server on connection release before making it available to other clients. Default: **DISCARD ALL**
* `PGBOUNCER_STATS_USERS`: PgBouncer comma-separated list of database users that are allowed to connect and run read-only queries. No defaults.
* `PGBOUNCER_MAX_PREPARED_STATEMENTS`: PgBouncer maximum number of cached prepared statements. Default: **0 (disabled)**.
### Initializing a new instance