]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/indices.src.sql
DB Scheme changes: alter table placex add column calculated_country_code varchar(2);
[nominatim.git] / sql / indices.src.sql
index 70776f99c9beb4004229a25ab2b86488b3d1b936..4db5a104e32ba0553b183b782b4afb0369bf0500 100644 (file)
@@ -27,3 +27,6 @@ CREATE INDEX idx_search_name_country_nameaddress_vector ON search_name_country U
 -- start
 CREATE INDEX idx_location_property_-partition-_centroid ON location_property_-partition- USING GIST (centroid);
 -- end
+
+CREATE UNIQUE INDEX idx_placex_osm_unique on placex using btree(osm_id,osm_type,class,type);
+CREATE UNIQUE INDEX idx_place_osm_unique on place using btree(osm_id,osm_type,class,type);