mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
fix(db): let a PgBouncer host turn the session startup options off
The statement timeout and, since v1.42, work_mem reach Postgres as the libpq options startup parameter, which PgBouncer refuses unless it is in ignore_startup_parameters. A host behind it could drop the string by setting the timeout to 0; work_mem is now always sent, so that no longer worked. DATABASE_SESSION_OPTIONS_DISABLED sends no session settings, documented in the example env, the env manifest, the compose whitelist and the scaling guide.
This commit is contained in:
1 parent
f950dffad4
commit
7c6510eba9
6 files changed
+54
-2
No files matched your search
@@ -217,6 +217,10 @@
|
||||
{
|
||||
"name": "DATABASE_WORK_MEM",
|
||||
"purpose": "Postgres work_mem for every app session, as a Postgres size string. Default 16MB. Raise it when large sorts and aggregates spill to disk; each sort step of each connection may use this much."
|
||||
},
|
||||
{
|
||||
"name": "DATABASE_SESSION_OPTIONS_DISABLED",
|
||||
"purpose": "Set to 1, true or yes to send no session settings (statement timeout, work_mem) as the libpq options startup parameter. Needed behind PgBouncer, which refuses that parameter unless it is in ignore_startup_parameters."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user