Skip to content

Commit

Permalink
Update index for ferries
Browse files Browse the repository at this point in the history
Pull request gravitystorm#3727 introduced the new condition osm_id > 0 but did
not update the condition for the indexes inteded to be used by the SQL
queries of these layers.
  • Loading branch information
Nakaner authored and pnorman committed Feb 13, 2020
1 parent f646dba commit d35bcc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

CREATE INDEX planet_osm_line_ferry
ON planet_osm_line USING GIST (way)
WHERE route = 'ferry';
WHERE route = 'ferry' AND osm_id > 0;
CREATE INDEX planet_osm_line_name
ON planet_osm_line USING GIST (way)
WHERE name IS NOT NULL;
Expand Down
2 changes: 1 addition & 1 deletion indexes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ line:
name:
where: name IS NOT NULL
ferry:
where: route = 'ferry'
where: route = 'ferry' AND osm_id > 0
river:
where: waterway = 'river'
polygon:
Expand Down

0 comments on commit d35bcc1

Please sign in to comment.