]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/indices.sql
Merge pull request #3463 from lonvia/sqlalchemy14-with-psycopg
[nominatim.git] / lib-sql / indices.sql
index 9c31f55699c06e58c9242c8c722e7d42ab430dd1..8c176fdf8199b55503a9775f5cf8e78e973ce969 100644 (file)
@@ -81,6 +81,9 @@ CREATE INDEX IF NOT EXISTS idx_postcode_postcode
     type TEXT,
     deferred BOOLEAN
    );
     type TEXT,
     deferred BOOLEAN
    );
+---
+  CREATE INDEX IF NOT EXISTS idx_location_postcode_parent_place_id
+    ON location_postcode USING BTREE (parent_place_id) {{db.tablespace.address_index}};
 {% endif %}
 
 -- Indices only needed for search.
 {% endif %}
 
 -- Indices only needed for search.