diff --git a/setup_fdw.sh b/setup_fdw.sh index 3a3b4ba..cd2e61b 100644 --- a/setup_fdw.sh +++ b/setup_fdw.sh @@ -1,6 +1,6 @@ # Create foreign data wrapper to another postgresql database # -ORGANIZATION_DB=`echo "SELECT database_name FROM users WHERE username='admin4example'" | psql -U postgres -t carto_db_production +ORGANIZATION_DB=`echo "SELECT database_name FROM users WHERE username='admin4example'" | psql -U postgres -t carto_db_production` echo "CREATE EXTENSION postgres_fdw;" | psql -U postgres $ORGANIZATION_DB echo "CREATE SCHEMA gps;" | psql -U postgres $ORGANIZATION_DB