X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dc7cfd1708da6fceb268d2efaaf92ef513a20234..dc7c11a9d1320965505ba18725466b0e9a648fde:/lib-sql/indices.sql?ds=inline

diff --git a/lib-sql/indices.sql b/lib-sql/indices.sql
index 9c31f556..8c176fdf 100644
--- a/lib-sql/indices.sql
+++ b/lib-sql/indices.sql
@@ -81,6 +81,9 @@ CREATE INDEX IF NOT EXISTS idx_postcode_postcode
     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.
