postgres-hstore: fix database initialization with custom username

master
informatic 2019-05-12 15:58:49 +02:00
parent d39cfd9b42
commit 0aee39af76
1 changed files with 1 additions and 1 deletions

2
postgres-hstore/create_extension.sh Normal file → Executable file
View File

@ -6,7 +6,7 @@ set -e
#
# Running CREATE EXTENSION in both template1 and postgres can lead to
# the extensions having different eid's.
psql --dbname template1 -U postgres <<EOSQL
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname template1 <<EOSQL
CREATE EXTENSION hstore;
CREATE EXTENSION ltree;
CREATE EXTENSION pg_trgm;