-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
We would like to configure postgres with startup configurations, for example
shared_preload_libraries = 'pg_stat_statements
this can be achieved today by manually editing generated postgres.conf (and restart to pick up the change)... or I guess subsequent ALTER setting config (on non postmaster pg configs) or maybe we can do this today with pg_ctl reload (which I think is already supported here) ... will research.
Probably (optionally) pass a HashMap into the function and then process around
| let options = format!("-F -p {}", self.settings.port); |
maybe its possible to chain .options() so we can just add '-c shared_preload_libraries='pg_stat_statements' string ... though I do not know if the current pg config builder is aware enough or if we have to munge strings direct here.
alternately we could support PG native env vars (ex. PGDATA) to control this. Maybe this already works if we start up in default without passing in any settings ... will research.
The end goal is to start a pg with custom pg configurations.