]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/indices.sql
improve handling von updates on nodes in interpolations
[nominatim.git] / lib-sql / indices.sql
index bbcaf43da553d43d6a9e7e783392cd4f79ea1b95..fed3452402d1cbde20f7a2143f6cd234cb7eef06 100644 (file)
@@ -48,6 +48,10 @@ CREATE INDEX IF NOT EXISTS idx_postcode_postcode
 
   CREATE UNIQUE INDEX IF NOT EXISTS idx_place_osm_unique
     ON place USING btree(osm_id, osm_type, class, type) {{db.tablespace.address_index}};
+
+  CREATE INDEX IF NOT EXISTS idx_place_interpolations
+    ON place USING gist(geometry) {{db.tablespace.address_index}}
+    WHERE osm_type = 'W' and address ? 'interpolation';
 {% endif %}
 
 -- Indices only needed for search.