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.
| Component | Set with |
|---|---|
| PgBouncer | exo dbaas update SERVICE_NAME -z ZONE -f --pg-bouncer-settings='JSON_OBJECT' |
| pglookout | exo dbaas update SERVICE_NAME -z ZONE -f --pg-lookout-settings='JSON_OBJECT' |
| TimescaleDB | exo 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 examplech-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"]}'| Parameter | Type | Allowed values | API default | Meaning |
|---|---|---|---|---|
autodb_idle_timeout | integer | 0 to 86400 | 3600 | Seconds an automatically created pool may stay unused before it is freed; 0 disables the timeout |
autodb_max_db_connections | integer | 0 to 2147483647 | Maximum server connections per database, whatever the user; 0 means unlimited | |
autodb_pool_mode | string | transaction, session, statement | transaction | Pool mode of automatically created pools |
autodb_pool_size | integer | 0 to 10000 | 0 | When not 0, size of the pool created automatically per user when no pool exists |
ignore_startup_parameters | array | extra_float_digits, search_path (up to 32 entries) | Startup parameters PgBouncer accepts and ignores instead of refusing the connection | |
max_prepared_statements | integer | 0 to 3000 | 100 | Protocol-level named prepared statements tracked in transaction and statement mode; 0 disables the tracking |
min_pool_size | integer | 0 to 10000 | 0 | Server connections kept open in each pool, capped at the pool size |
server_connect_timeout | number | 1 to 86400 | Seconds allowed for connecting and logging in to PostgreSQL | |
server_idle_timeout | integer | 0 to 86400 | 600 | Seconds after which an idle server connection is closed; 0 disables the timeout |
server_lifetime | integer | 60 to 86400 | 3600 | Seconds after which an unused server connection is closed and replaced |
server_login_retry | number | 1 to 86400 | Seconds PgBouncer waits before retrying after a failed login to PostgreSQL | |
server_reset_query_always | boolean | true, false | false | Run 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 ZONEignore_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}'| Parameter | Type | Allowed values | API default | Meaning |
|---|---|---|---|---|
max_failover_replication_time_lag | integer | 10 to 9223372036854775807 | 60 | Seconds 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}'| Parameter | Type | Allowed values | API default | Meaning |
|---|---|---|---|---|
max_background_workers | integer | 1 to 4096 | 16 | Background 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.