Skip to content

Commit 7c5bbf3

Browse files
committed
Document database settings
1 parent 54b8ca9 commit 7c5bbf3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/configuration/pgdog.toml/databases.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,22 @@ Indicates this database is a mirror of another one. All traffic sent to the `mir
7979
For clusters with multiple databases, `mirror_of` must be identical in all entries. Otherwise, mirroring will be automatically disabled for that database.
8080

8181
Default: **`none`**
82+
83+
!!! note
84+
All settings below take priority over values in [`[general]`](general.md) and [`[[users]]`](../users.toml/users.md) config sections.
85+
86+
### `pool_size`
87+
88+
Overrides the [`default_pool_size`](general.md#default_pool_size) setting. All connection pools for this database will open at most this many connections to Postgres.
89+
90+
### `statement_timeout`
91+
92+
Overrides the [`statement_timeout`](general.md#statement_timeout) setting. This sets the `statement_timeout` connection parameter on all connections to Postgres for this database.
93+
94+
### `idle_timeout`
95+
96+
Overrides the [`idle_timeout`](general.md#idle_timeout) setting. Idle server connections exceeding this timeout will be closed automatically.
97+
98+
### `read_only`
99+
100+
Sets the `default_transaction_read_only` connection parameter to `on` on all server connections to this database. Clients can still override it with `SET`.

0 commit comments

Comments
 (0)