Skip to content

Commit

Permalink
Fix index naming
Browse files Browse the repository at this point in the history
  • Loading branch information
stijndcl committed Apr 19, 2024
1 parent d6369b0 commit 8c2306e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/parallel_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_index() {
local column_name=$2

# Execute the "add index" statement
PGPASSWORD="$DB_PASSWORD" psql -U "$DB_USER" -c "CREATE INDEX idx_$column_name ON $DB_NAME.$table_name($column_name);" &
PGPASSWORD="$DB_PASSWORD" psql -U "$DB_USER" -c "CREATE INDEX idx_${table_name}_$column_name ON $DB_NAME.$table_name($column_name);" &
}

# List of tables and columns for which you want to add indexes
Expand Down

0 comments on commit 8c2306e

Please sign in to comment.