Skip to content

Commit

Permalink
Bug fix: Remove schema name from CREATE INDEX
Browse files Browse the repository at this point in the history
Indexes are always created in the same schema as the table.

Fixes osm2pgsql-dev#1447
  • Loading branch information
joto committed Apr 6, 2021
1 parent a50137c commit 6fc56bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middle-pgsql.cpp
Expand Up @@ -717,7 +717,7 @@ static table_sql sql_for_ways(bool has_bucket_index,
" SELECT ARRAY(SELECT DISTINCT"
" unnest($1) >> {way_node_index_id_shift})\n"
"$$ LANGUAGE SQL IMMUTABLE;\n"
"CREATE INDEX {schema}\"{prefix}_ways_nodes_bucket_idx\""
"CREATE INDEX \"{prefix}_ways_nodes_bucket_idx\""
" ON {schema}\"{prefix}_ways\""
" USING GIN ({schema}\"{prefix}_index_bucket\"(nodes))"
" WITH (fastupdate = off) {index_tablespace};\n";
Expand Down

0 comments on commit 6fc56bf

Please sign in to comment.