X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dc7cfd1708da6fceb268d2efaaf92ef513a20234..7f0d969d71a09cac63a2a916554427627ca399bc:/lib-sql/indices.sql

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.
