remove linked places also from the location_area_large tables

We don't want linked places to show up in addresses either,
so remove them from the address lookup table.
This commit is contained in:
Sarah Hoffmann 2020-05-10 13:59:47 +02:00
parent fc19ebb218
commit 0a14142156

View File

@ -811,6 +811,7 @@ BEGIN
IF NOT %REVERSE-ONLY% THEN
DELETE FROM search_name WHERE place_id = location.place_id;
END IF;
PERFORM deleteLocationArea(NEW.partition, location.place_id, NEW.rank_search);
SELECT wikipedia, importance
FROM compute_importance(location.extratags, NEW.country_code,