restrict change propagation to interpolation lines

Also means that Postgresql will use the right index for the query.
This commit is contained in:
Sarah Hoffmann
2022-01-28 11:05:37 +01:00
parent c50c534d19
commit fbc8884693

View File

@@ -156,6 +156,7 @@ BEGIN
SELECT DISTINCT osm_id, address, geometry FROM place, planet_osm_ways w
WHERE NEW.geometry && place.geometry
and place.osm_type = 'W'
and place.address ? 'interpolation'
and exists (SELECT * FROM location_property_osmline
WHERE osm_id = place.osm_id
and indexed_status in (0, 2))