Skip to content
PgBouncer, pglookout and TimescaleDB Parameters

PgBouncer, pglookout and TimescaleDB Parameters

This page lists the parameters Managed PostgreSQL accepts for the components that run next to the database server: the PgBouncer connection pooler, the pglookout failover manager and the TimescaleDB extension.

The PostgreSQL server parameters are on PostgreSQL configuration parameters. The pgaudit settings are not part of the settings catalog; they are listed in Collect pgaudit logs.

Note

The tables below were generated from the settings catalog on 2026-11-10. Check them against the current catalog with:

exo api get-dbaas-settings-pg -z ch-gva-2 -q 'settings.pgbouncer'

Replace pgbouncer with pglookout or timescaledb for the other components. exo dbaas type show pg --settings pgbouncer lists the PgBouncer keys with an empty description column, because the catalog puts their description in the title field, and exo dbaas type show pg --settings timescaledb prints nothing.

ComponentSet with
PgBouncerexo dbaas update SERVICE_NAME -z ZONE -f --pg-bouncer-settings='JSON_OBJECT'
pglookoutexo dbaas update SERVICE_NAME -z ZONE -f --pg-lookout-settings='JSON_OBJECT'
TimescaleDBexo dbaas update SERVICE_NAME -z ZONE -f --pg-timescaledb-settings='JSON_OBJECT'

Parameters:

  • SERVICE_NAME: name of the Managed PostgreSQL service.
  • ZONE: zone the service runs in, for example ch-gva-2.
  • JSON_OBJECT: a JSON object whose keys are parameter names from the tables below.

Each update is merged into the stored settings. Read them back with exo api get-dbaas-service-pg SERVICE_NAME -z ZONE, in the pgbouncer-settings, pglookout-settings and timescaledb-settings fields.

PgBouncer Parameters

These parameters configure the PgBouncer process that listens on the pooler port of the service. The pools it serves are created separately, through the API, as described in Manage connection pools.

exo dbaas update my-postgresql -z ch-gva-2 -f \
  --pg-bouncer-settings='{"min_pool_size":5,"server_idle_timeout":300,"ignore_startup_parameters":["extra_float_digits"]}'
ParameterTypeAllowed valuesAPI defaultMeaning
autodb_idle_timeoutinteger0 to 864003600Seconds an automatically created pool may stay unused before it is freed; 0 disables the timeout
autodb_max_db_connectionsinteger0 to 2147483647Maximum server connections per database, whatever the user; 0 means unlimited
autodb_pool_modestringtransaction, session, statementtransactionPool mode of automatically created pools
autodb_pool_sizeinteger0 to 100000When not 0, size of the pool created automatically per user when no pool exists
ignore_startup_parametersarrayextra_float_digits, search_path (up to 32 entries)Startup parameters PgBouncer accepts and ignores instead of refusing the connection
max_prepared_statementsinteger0 to 3000100Protocol-level named prepared statements tracked in transaction and statement mode; 0 disables the tracking
min_pool_sizeinteger0 to 100000Server connections kept open in each pool, capped at the pool size
server_connect_timeoutnumber1 to 86400Seconds allowed for connecting and logging in to PostgreSQL
server_idle_timeoutinteger0 to 86400600Seconds after which an idle server connection is closed; 0 disables the timeout
server_lifetimeinteger60 to 864003600Seconds after which an unused server connection is closed and replaced
server_login_retrynumber1 to 86400Seconds PgBouncer waits before retrying after a failed login to PostgreSQL
server_reset_query_alwaysbooleantrue, falsefalseRun DISCARD ALL when a connection is released, in every pool mode

The meaning of each key is that of the PgBouncer configuration ↗.

Warning

exo dbaas update --pg-bouncer-settings drops server_connect_timeout and server_login_retry without an error: the command exits with status 0 and the two keys are not stored. Set them with the API:

echo '{"pgbouncer-settings":{"server_connect_timeout":30,"server_login_retry":20}}' | \
  exo api update-dbaas-service-pg SERVICE_NAME -z ZONE

ignore_startup_parameters makes PgBouncer accept a parameter and do nothing with it. A client that sends search_path at connection time gets the server default instead. Set the search path with ALTER ROLE ... SET search_path so it applies to every server connection.

pglookout Parameters

pglookout watches the primary node and decides when a standby node takes over.

exo dbaas update my-postgresql -z ch-gva-2 -f \
  --pg-lookout-settings='{"max_failover_replication_time_lag":120}'
ParameterTypeAllowed valuesAPI defaultMeaning
max_failover_replication_time_laginteger10 to 922337203685477580760Seconds of primary unavailability before a failover to a standby node

Standby nodes exist on Business and Premium plans. See High availability.

TimescaleDB Parameters

exo dbaas update my-postgresql -z ch-gva-2 -f \
  --pg-timescaledb-settings='{"max_background_workers":16}'
ParameterTypeAllowed valuesAPI defaultMeaning
max_background_workersinteger1 to 409616Background workers available to TimescaleDB jobs. The catalog marks a change as restarting the service.

TimescaleDB workers are taken from the PostgreSQL worker pool, so raising this value can require raising max_worker_processes as well. SHOW timescaledb.license; returns apache on Managed PostgreSQL. See Use TimescaleDB for what this build supports.

Related Pages

Last updated on