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

@ -661,7 +661,7 @@ BEGIN
UPDATE placex SET linked_place_id = NEW.place_id WHERE place_id = linked_node_id;
IF NOT %REVERSE-ONLY% THEN
DELETE FROM search_name WHERE place_id = linked_node_id;
END IF;
END IF;
END LOOP;
END IF;
END LOOP;
@ -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,