]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/tables.sql
create postcode id index earlier
[nominatim.git] / lib-sql / tables.sql
index 0895c6dd3b83b812fb0575384c2ea85ff5f47f4e..329eb7a1ab9491f8fb063b92747dd0abfcf9c2d2 100644 (file)
@@ -209,6 +209,7 @@ CREATE TABLE location_postcode (
   postcode TEXT,
   geometry GEOMETRY(Geometry, 4326)
   );
+CREATE UNIQUE INDEX idx_postcode_id ON location_postcode USING BTREE (place_id) {{db.tablespace.search_index}};
 CREATE INDEX idx_postcode_geometry ON location_postcode USING GIST (geometry) {{db.tablespace.address_index}};
 GRANT SELECT ON location_postcode TO "{{config.DATABASE_WEBUSER}}" ;