mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-23 13:06:15 +03:00
defered delete should be done even if the place is otherwise blocked
This commit is contained in:
parent
afe30880b4
commit
1c75adb39f
@ -1234,6 +1234,13 @@ DECLARE
|
|||||||
result BOOLEAN;
|
result BOOLEAN;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
||||||
|
-- deferred delete
|
||||||
|
IF OLD.indexed_status = 100 THEN
|
||||||
|
--DEBUG: RAISE WARNING 'placex_update_delete % %',NEW.osm_type,NEW.osm_id;
|
||||||
|
delete from placex where place_id = OLD.place_id;
|
||||||
|
RETURN NULL;
|
||||||
|
END IF;
|
||||||
|
|
||||||
IF NEW.indexed_status != 0 OR OLD.indexed_status = 0 OR NEW.linked_place_id is not null THEN
|
IF NEW.indexed_status != 0 OR OLD.indexed_status = 0 OR NEW.linked_place_id is not null THEN
|
||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END IF;
|
END IF;
|
||||||
@ -1248,13 +1255,6 @@ BEGIN
|
|||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- deferred delete
|
|
||||||
IF OLD.indexed_status = 100 THEN
|
|
||||||
--DEBUG: RAISE WARNING 'placex_update_delete % %',NEW.osm_type,NEW.osm_id;
|
|
||||||
delete from placex where place_id = OLD.place_id;
|
|
||||||
RETURN NULL;
|
|
||||||
END IF;
|
|
||||||
|
|
||||||
IF OLD.indexed_status != 0 THEN
|
IF OLD.indexed_status != 0 THEN
|
||||||
--DEBUG: RAISE WARNING 'placex_update_0 % %',NEW.osm_type,NEW.osm_id;
|
--DEBUG: RAISE WARNING 'placex_update_0 % %',NEW.osm_type,NEW.osm_id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user