X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/07720619586682604187d27ed3bcb8e9cba8ba7c..38545f899372405fde2ddf9c1e57852b5537e0c0:/sql/tables.sql?ds=sidebyside diff --git a/sql/tables.sql b/sql/tables.sql index acca8cbd..212d78c6 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -249,17 +249,7 @@ CREATE TRIGGER place_before_delete BEFORE DELETE ON place CREATE TRIGGER place_before_insert BEFORE INSERT ON place FOR EACH ROW EXECUTE PROCEDURE place_insert(); -alter table placex add column geometry_sector INTEGER; -alter table placex add column indexed_status INTEGER; -alter table placex add column indexed_date TIMESTAMP; - -update placex set geometry_sector = geometry_sector(geometry); -drop index idx_placex_pendingbylatlon; -drop index idx_placex_interpolation; drop index idx_placex_sector; -CREATE INDEX idx_placex_pendingbylatlon ON placex USING BTREE (geometry_index(geometry_sector,indexed,name),rank_search) - where geometry_index(geometry_sector,indexed,name) IS NOT NULL; -CREATE INDEX idx_placex_interpolation ON placex USING BTREE (geometry_sector) where indexed = false and class='place' and type='houses'; CREATE INDEX idx_placex_sector ON placex USING BTREE (geometry_sector,rank_address,osm_type,osm_id); DROP SEQUENCE seq_postcodes;