]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/indices.sql
vagrant: remove proj dependency and only require php-cli
[nominatim.git] / lib-sql / indices.sql
index 332cbb00f70013a42387a39e392e5ffc1a3de79c..9bbc7527fdf65b89f667a228c9b950002970c922 100644 (file)
@@ -63,12 +63,12 @@ CREATE INDEX IF NOT EXISTS idx_postcode_postcode
 
   {% if postgres.has_index_non_key_column %}
     CREATE INDEX IF NOT EXISTS idx_placex_housenumber
-      ON placex USING btree (parent_place_id) {{db.tablespace.search_index}}
-      INCLUDE (housenumber)
+      ON placex USING btree (parent_place_id)
+      INCLUDE (housenumber) {{db.tablespace.search_index}}
       WHERE housenumber is not null;
     CREATE INDEX IF NOT EXISTS idx_osmline_parent_osm_id_with_hnr
-      ON location_property_osmline USING btree(parent_place_id) {{db.tablespace.search_index}}
-      INCLUDE (startnumber, endnumber)
+      ON location_property_osmline USING btree(parent_place_id)
+      INCLUDE (startnumber, endnumber) {{db.tablespace.search_index}}
       WHERE startnumber is not null;
   {% endif %}
 {% endif %}