]> git.openstreetmap.org Git - nominatim.git/commit
force delete from place if there is no corresponding object in placex
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 17 Sep 2013 19:26:07 +0000 (21:26 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 19 Sep 2013 20:22:03 +0000 (22:22 +0200)
commitde45bafc5455c3ccf4c8fd082abef9ee8dfe9d3d
tree0c10137706e41216ef4abf5a5da85800c9782322
parent65ea0efe68fb52d0f591c964215866c9175adb6a
force delete from place if there is no corresponding object in placex

This might happen for nameless landuse/natural objects that are added to place
during initial import but then dropped when being copied to placex.
If they later receive a name, thus becoming valid, then place_insert should
delete the orphan object in place and reinsert it. If they are large enough,
the place_delete trigger prevents them from being removed. The additional
update fools the delete trigger.
sql/functions.sql