From 17c1dbf6d44525402c5986ff81672b7ea7b8b944 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Mon, 12 Feb 2024 12:10:20 +0000 Subject: [PATCH] Revert "Feat: add support for pg_trgm" --- Dockerfile | 2 +- README.md | 2 +- init-db/{001-setup-pg_cron.sh => 001-setup.sh} | 5 +++-- init-db/002-setup-pg_trgm.sql | 1 - 4 files changed, 5 insertions(+), 5 deletions(-) rename init-db/{001-setup-pg_cron.sh => 001-setup.sh} (77%) delete mode 100644 init-db/002-setup-pg_trgm.sql diff --git a/Dockerfile b/Dockerfile index d6d58e7..c2be374 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:13 +FROM postgres:13.8 RUN apt-get update RUN apt-get -y install postgresql-13-cron diff --git a/README.md b/README.md index fc99cf2..442f994 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Postgres givethio -We needed a postgres docker image with enabled pg_cron and pg_trgm so we wrote and publish this docker image +We needed a postgres docker image with enabled pg_cron 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-pg_cron.sh b/init-db/001-setup.sh similarity index 77% rename from init-db/001-setup-pg_cron.sh rename to init-db/001-setup.sh index 1b19da6..92e840f 100755 --- a/init-db/001-setup-pg_cron.sh +++ b/init-db/001-setup.sh @@ -4,8 +4,9 @@ # 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,pg_trgm'; -cron.database_name = 'givethio' +shared_preload_libraries='pg_cron' +cron.database_name='givethio' EOT # Required to load pg_cron pg_ctl restart + diff --git a/init-db/002-setup-pg_trgm.sql b/init-db/002-setup-pg_trgm.sql deleted file mode 100644 index d497121..0000000 --- a/init-db/002-setup-pg_trgm.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE EXTENSION pg_trgm;