Skip to content

Commit cf82ab5

Browse files
committed
Fixing pg_trgm Load
1 parent f1a9db3 commit cf82ab5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:13.8
1+
FROM postgres:13
22

33
RUN apt-get update
44
RUN apt-get -y install postgresql-13-cron

init-db/001-setup.sh renamed to init-db/001-setup-pg_cron.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
# Remove last line "shared_preload_libraries='citus'"
55
sed -i '$ d' /var/lib/postgresql/data/pgdata/postgresql.conf
66
cat <<EOT >> /var/lib/postgresql/data/pgdata/postgresql.conf
7-
shared_preload_libraries='pg_cron,pg_trgm'
8-
cron.database_name='givethio'
7+
shared_preload_libraries = 'pg_cron,pg_trgm';
8+
cron.database_name = 'givethio'
99
EOT
1010
# Required to load pg_cron
1111
pg_ctl restart
12-

init-db/002-setup-pg_trgm.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE EXTENSION pg_trgm;

0 commit comments

Comments
 (0)