# The extensions coreapp.toml asks for ([postgres] extensions), made by the
# Core's superuser in the app's database (the app's user can't make
# untrusted ones, like vector). Ones already there are kept, also when the
# list drops them: the app's data may use them.
for extension in {{EXTENSIONS}}; do
  docker exec postgresql psql -U postgres -d {{DBNAME}} -v ON_ERROR_STOP=1 -qc "CREATE EXTENSION IF NOT EXISTS \"$extension\" CASCADE"
done
unset extension
