]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix syntax error with tablespaces
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 30 Jun 2022 07:19:16 +0000 (09:19 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 30 Jun 2022 07:19:16 +0000 (09:19 +0200)
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 %}