Skip to content

Commit

Permalink
adding the support for pg_stat_statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Mar 13, 2024
1 parent ac2a975 commit 7e3951a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init-db/001-setup-pg_cron.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
1 change: 1 addition & 0 deletions init-db/003-setup-pg_stat_statements.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;

0 comments on commit 7e3951a

Please sign in to comment.