From 07ab5dc16e9530243a8d4a5e159e12a9e3c0e781 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 13 Jun 2026 18:17:21 +0200 Subject: [PATCH] Quote PostgreSQL extension names Wrap the extension identifier in double quotes in the CREATE EXTENSION SQL call within setup_postgresql_db. This ensures extension names containing hyphens, mixed case, or other characters that require quoting are handled correctly and avoids syntax errors when creating extensions. --- misc/tools.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 055eb3ee2..cbeded9f8 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -8098,7 +8098,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