From 0431db8e1d109f22c301b82871bbe7d07b183426 Mon Sep 17 00:00:00 2001 From: Igor Diakonov Date: Mon, 29 Jun 2020 12:55:56 +0300 Subject: [PATCH] Added citext --- postgres-restore-s3/restore.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres-restore-s3/restore.sh b/postgres-restore-s3/restore.sh index 5b3af10..93d5389 100644 --- a/postgres-restore-s3/restore.sh +++ b/postgres-restore-s3/restore.sh @@ -79,6 +79,7 @@ psql $POSTGRES_HOST_OPTS -d postgres -c "SELECT pg_terminate_backend(pg_stat_act psql $POSTGRES_HOST_OPTS -d postgres -c "DROP DATABASE IF EXISTS \"$POSTGRES_DATABASE\";" psql $POSTGRES_HOST_OPTS -d postgres -c "CREATE DATABASE \"$POSTGRES_DATABASE\";" psql $POSTGRES_HOST_OPTS -d postgres -c "GRANT ALL PRIVILEGES ON DATABASE \"$POSTGRES_DATABASE\" TO $POSTGRES_USER;" +psql $POSTGRES_HOST_OPTS -d postgres -c "CREATE EXTENSION IF NOT EXISTS citext;" set -e pg_restore $POSTGRES_HOST_OPTS --no-owner --single-transaction -n public --no-privileges -v -d "$POSTGRES_DATABASE" dump.sql