Skip to content

Commit ac2a975

Browse files
authored
Merge pull request #7 from Giveth/revert-6-revert-5-feat/add-pg_trgm
Revert "Revert "Feat: add support for pg_trgm""
2 parents 62664da + c85bfeb commit ac2a975

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Postgres givethio
22

3-
We needed a postgres docker image with enabled pg_cron so we wrote and publish this docker image
3+
We needed a postgres docker image with enabled pg_cron and pg_trgm so we wrote and publish this docker image
44
to use it in https://github.com/Giveth/impact-graph
55

66
related PR in impact-graph https://github.com/Giveth/impact-graph/pull/658

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'
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)