fix(db): let the maintenance job run behind a pooler that refuses startup options

This commit is contained in:
Marc-André Bombeck committed 2026-10-08 22:57:30 +02:00
1 parent 0d368170f3
commit 32cb75c1aa
3 files changed
+56 -1

No files matched your search

+3
View File
@@ -195,6 +195,9 @@ in `ignore_startup_parameters`. Either list it there, or set
`DATABASE_SESSION_OPTIONS_DISABLED=1` so the app sends no session
settings; set the timeout and `work_mem` on the database role instead
(`ALTER ROLE healthlog SET work_mem = '16MB'`) if you still want them.
The measurement maintenance job (Admin, System status) then applies its own
settings with `SET` after connecting. Its concurrent index rebuild needs a
session, so run it through a session-mode pool or a direct connection.
### Overriding the per-container pool ceiling