You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Load extensions into both template_database and $POSTGRES_DBforDBin template_postgis "$POSTGRES_DB";doecho"Loading PostGIS extensions into $DB"forEXTENSIONin$POSTGIS_EXTENSIONS;do"${psql[@]}" --dbname="$DB" -c "CREATE EXTENSION IF NOT EXISTS $EXTENSION";doneecho"Loading Postgres extensions into $DB"forEXTENSIONin$POSTGRES_EXTENSIONS;do"${psql[@]}" --dbname="$DB" -c "CREATE EXTENSION IF NOT EXISTS $EXTENSION";donedone
updatedb
# Load PostGIS into both template_database and $POSTGRES_DBforDBin template_postgis "$POSTGRES_DB""${@}";doecho"Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"forEXTENSIONin$POSTGIS_EXTENSIONS;do"${psql[@]}" --dbname="$DB" -c " CREATE EXTENSION IF NOT EXISTS $EXTENSION";
ALTER EXTENSION $EXTENSION UPDATE TO '$POSTGIS_VERSION';doneecho"Create other postgres extensions in '$DB'"forEXTENSIONin$POSTGRES_EXTENSIONS;do"${psql[@]}" --dbname="$DB" -c "CREATE EXTENSION IF NOT EXISTS $EXTENSION";donedone
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
According
#265
#187
#191 (comment)
#263
I'd like to try to let user choose their own (available) extensions in environment variables.
I can propose:
initdb
updatedb
With this I am able to run :
I choose to separate POSGTRES and POSTGIS extensions because only POSTGIS's should be upgraded
We can change environment variable names
What are you thinking about for a first shoot ?
Beta Was this translation helpful? Give feedback.
All reactions