X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5d1fa597ead7fbba41e137037ef145d0d9b154d6..c5fe2ac2067c7154370c3abd6ccca45b0d657547:/sql/functions/placex_triggers.sql diff --git a/sql/functions/placex_triggers.sql b/sql/functions/placex_triggers.sql index cedbb608..9803e815 100644 --- a/sql/functions/placex_triggers.sql +++ b/sql/functions/placex_triggers.sql @@ -225,6 +225,7 @@ BEGIN WHERE make_standard_name(name->'name') = bnd_name AND placex.rank_address = bnd.rank_address AND placex.osm_type = 'N' + AND placex.rank_search < 26 -- needed to select the right index AND st_covers(geometry, placex.geometry) LOOP --DEBUG: RAISE WARNING 'Found matching place node %', linkedPlacex.osm_id; @@ -235,7 +236,7 @@ BEGIN RETURN NULL; END; $$ -LANGUAGE plpgsql; +LANGUAGE plpgsql STABLE; CREATE OR REPLACE FUNCTION placex_insert() RETURNS TRIGGER