]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove duplicate index
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 15 May 2016 08:57:03 +0000 (10:57 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 15 May 2016 09:44:54 +0000 (11:44 +0200)
sql/indices.src.sql
sql/tables.sql

index bf6093e0020c7068be6956544a2a8c49ca48cb21..bbd5a76aeafa3cc719a149be9a8b05e5ed65ed51 100644 (file)
@@ -17,10 +17,7 @@ CREATE INDEX idx_placex_parent_place_id ON placex USING BTREE (parent_place_id)
 CREATE INDEX idx_placex_reverse_geometry ON placex USING gist (geometry) {ts:search-index} where rank_search != 28 and (name is not null or housenumber is not null) and class not in ('waterway','railway','tunnel','bridge','man_made');
 CREATE INDEX idx_location_area_country_place_id ON location_area_country USING BTREE (place_id) {ts:address-index};
 
-CREATE UNIQUE INDEX idx_osmline_place_id ON location_property_osmline USING BTREE (place_id) {ts:search-index};
 CREATE INDEX idx_osmline_parent_place_id ON location_property_osmline USING BTREE (parent_place_id) {ts:search-index};
-CREATE INDEX idx_osmline_geometry_sector ON location_property_osmline USING BTREE (geometry_sector) {ts:address-index};
-CREATE INDEX idx_osmline_linegeo ON location_property_osmline USING GIST (linegeo) {ts:search-index};
 
 CREATE INDEX idx_search_name_country_centroid ON search_name_country USING GIST (centroid) {ts:address-index};
 
index 2578aa91cc0bd9a798221218a3a179c25ddf0127..75129ce8984a9a00b08ec2662f670b7569a1234c 100644 (file)
@@ -101,7 +101,6 @@ CREATE TABLE location_property_osmline (
     indexed_status INTEGER,
     indexed_date TIMESTAMP){ts:search-data};
 CREATE UNIQUE INDEX idx_osmline_place_id ON location_property_osmline USING BTREE (place_id) {ts:search-index};
-CREATE INDEX idx_osmline_parent_place_id ON location_property_osmline USING BTREE (parent_place_id) {ts:search-index};
 CREATE INDEX idx_osmline_geometry_sector ON location_property_osmline USING BTREE (geometry_sector) {ts:address-index};
 CREATE INDEX idx_osmline_linegeo ON location_property_osmline USING GIST (linegeo) {ts:search-index};
 GRANT SELECT ON location_property_osmline TO "{www-user}";