Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding the support for pg_stat_statements #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion init-db/001-setup-pg_cron.sh → init-db/001-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Remove last line "shared_preload_libraries='citus'"
sed -i '$ d' /var/lib/postgresql/data/pgdata/postgresql.conf
cat <<EOT >> /var/lib/postgresql/data/pgdata/postgresql.conf
shared_preload_libraries = 'pg_cron,pg_trgm'
shared_preload_libraries = 'pg_cron,pg_trgm,pg_stat_statements'
pg_stat_statements.track = all
cron.database_name = 'givethio'
EOT
# Required to load pg_cron
Expand Down
2 changes: 2 additions & 0 deletions init-db/002-setup-extensions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE EXTENSION pg_trgm;
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
1 change: 0 additions & 1 deletion init-db/002-setup-pg_trgm.sql

This file was deleted.