You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hello @JimFuller-RedHat, thank you for the feature request. From the description, it sounds like you are planning on spending some more time researching this. I put together the start of something that may meet your needs; would you mind taking a look at #74 and letting me know what your thoughts are?
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
postgresql-embedded/postgresql_embedded/src/postgresql.rs
Line 257 in 1973b58
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.
The text was updated successfully, but these errors were encountered: