mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
restrict change propagation to interpolation lines
Also means that Postgresql will use the right index for the query.
This commit is contained in:
@@ -156,6 +156,7 @@ BEGIN
|
|||||||
SELECT DISTINCT osm_id, address, geometry FROM place, planet_osm_ways w
|
SELECT DISTINCT osm_id, address, geometry FROM place, planet_osm_ways w
|
||||||
WHERE NEW.geometry && place.geometry
|
WHERE NEW.geometry && place.geometry
|
||||||
and place.osm_type = 'W'
|
and place.osm_type = 'W'
|
||||||
|
and place.address ? 'interpolation'
|
||||||
and exists (SELECT * FROM location_property_osmline
|
and exists (SELECT * FROM location_property_osmline
|
||||||
WHERE osm_id = place.osm_id
|
WHERE osm_id = place.osm_id
|
||||||
and indexed_status in (0, 2))
|
and indexed_status in (0, 2))
|
||||||
|
|||||||
Reference in New Issue
Block a user