trustification / trustify

Apache License 2.0
8 stars 15 forks source link

Enable pg_stat_statements postgres extension when in pm-mode #409

Closed JimFuller-RedHat closed 2 weeks ago

JimFuller-RedHat commented 2 weeks ago

Sets embedded postgres config to preload pg_stat_statements lib

  shared_preload_libraries=pg_stat_statements

so we can invoke

  CREATE EXTENSION IF NOT EXISTS pg_stat_statements;

when pm-mode is engaged, which installs pg_stat_statements into trustify embedded pg database.

This is a minimal first effort - in the future we may want to do more - such as pass in env var to set pg configs, etc ... though as pm-mode is purely developmental I stopped there.

Note: Bumped postgresql_embedded=0.10.1, postgresql_archive=0.10.1