postgresql icon indicating copy to clipboard operation
postgresql copied to clipboard

Enable pg_stat_statements?

Open edbizarro opened this issue 5 years ago • 4 comments

There is a way to enable pg_stat_statements? This extension required an extra config pg_stat_statements.track = all but I can't find a way to do this in the yml

edbizarro avatar Jul 21 '18 18:07 edbizarro

You will need to enable it in shared_preload_libraries:

  postgresql_shared_preload_libraries:
    - "pg_stat_statements"

And then add it as an extension:

  postgresql_database_extensions:
    - db: postgres
      extensions:
        - pg_stat_statements

If you're wanting to add extra parameters to the postgresql.conf... I'm not sure there is a way to do that. It would need to be added to the templates/postgresql.conf-{{ postgresql_version }}.j2 file, which is the source for all postgresql.conf settings.

gclough avatar Jul 24 '18 10:07 gclough

This will get fixed by #277

gclough avatar Mar 09 '19 11:03 gclough

Would be nice to see it in a release. #277 is open too long 😢

attenzione avatar Mar 25 '19 15:03 attenzione

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

github-actions[bot] avatar Feb 23 '24 23:02 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Apr 23 '24 23:04 github-actions[bot]