Merge pull request #1833 from senk/bugfix/postgresextension

fix(postgresql): quote extension names in CREATE EXTENSION to support hyphens
This commit is contained in:
CanbiZ (MickLesk)
2026-06-01 08:12:51 +02:00
committed by GitHub

View File

@@ -7979,7 +7979,7 @@ setup_postgresql_db() {
IFS=',' read -ra EXT_LIST <<<"${PG_DB_EXTENSIONS:-}"
for ext in "${EXT_LIST[@]}"; do
ext=$(echo "$ext" | xargs) # Trim whitespace
$STD sudo -u postgres psql -d "$PG_DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS $ext;"
$STD sudo -u postgres psql -d "$PG_DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS \"$ext\";"
done
fi