Skip to content

Commit ac3979e

Browse files
committed
Use a name with _idx suffix for the indexes we create
To be consistent with the naming scheme used by PostgreSQL.
1 parent 93c3583 commit ac3979e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/middle-pgsql.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,11 +1603,11 @@ static table_sql sql_for_relations_format2()
16031603
" FROM jsonb_array_elements($1) AS el"
16041604
" WHERE el->>'type' = $2"
16051605
"$$ LANGUAGE SQL IMMUTABLE",
1606-
"CREATE INDEX \"{prefix}_rels_node_members\""
1606+
"CREATE INDEX \"{prefix}_rels_node_members_idx\""
16071607
" ON {schema}\"{prefix}_rels\" USING GIN"
16081608
" (({schema}\"{prefix}_member_ids\"(members, 'N'::char)))"
16091609
" WITH (fastupdate = off) {index_tablespace}",
1610-
"CREATE INDEX \"{prefix}_rels_way_members\""
1610+
"CREATE INDEX \"{prefix}_rels_way_members_idx\""
16111611
" ON {schema}\"{prefix}_rels\" USING GIN"
16121612
" (({schema}\"{prefix}_member_ids\"(members, 'W'::char)))"
16131613
" WITH (fastupdate = off) {index_tablespace}"};

0 commit comments

Comments
 (0)