diff --git a/README.md b/README.md index 442f994..fc99cf2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Postgres givethio -We needed a postgres docker image with enabled pg_cron so we wrote and publish this docker image +We needed a postgres docker image with enabled pg_cron and pg_trgm so we wrote and publish this docker image to use it in https://github.com/Giveth/impact-graph related PR in impact-graph https://github.com/Giveth/impact-graph/pull/658 diff --git a/init-db/001-setup.sh b/init-db/001-setup.sh index 92e840f..975739a 100755 --- a/init-db/001-setup.sh +++ b/init-db/001-setup.sh @@ -4,7 +4,7 @@ # Remove last line "shared_preload_libraries='citus'" sed -i '$ d' /var/lib/postgresql/data/pgdata/postgresql.conf cat <> /var/lib/postgresql/data/pgdata/postgresql.conf -shared_preload_libraries='pg_cron' +shared_preload_libraries='pg_cron,pg_trgm' cron.database_name='givethio' EOT # Required to load pg_cron