mirror of
https://github.com/bitnami/containers.git
synced 2026-04-06 09:17:43 +08:00
[bitnami/pgbouncer] Support the max_prepared_statements variable in pgbouncer (#51960)
Support the max_prepared_statements variable in pgbouncer Signed-off-by: Davis Gossage <davis@tome.page>
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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:-}"
|
||||
|
||||
@@ -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)**.
|
||||
|
||||
Reference in New Issue
Block a user