Skip to content

Commit

Permalink
Fixing pg_trgm Load
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Feb 12, 2024
1 parent f1a9db3 commit cf82ab5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:13.8
FROM postgres:13

RUN apt-get update
RUN apt-get -y install postgresql-13-cron
Expand Down
5 changes: 2 additions & 3 deletions init-db/001-setup.sh → init-db/001-setup-pg_cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +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'
cron.database_name='givethio'
shared_preload_libraries = 'pg_cron,pg_trgm';
cron.database_name = 'givethio'
EOT
# Required to load pg_cron
pg_ctl restart

1 change: 1 addition & 0 deletions init-db/002-setup-pg_trgm.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE EXTENSION pg_trgm;

0 comments on commit cf82ab5

Please sign in to comment.