move transliteration of housenumbers into indexing

Housenumbers are now saved in transliterated form in the housenumber
column. This saves the transliteration step during lookup.
This commit is contained in:
Sarah Hoffmann
2021-03-29 16:45:09 +02:00
parent 3590e76a1c
commit 16a66b5326
3 changed files with 42 additions and 11 deletions

View File

@@ -680,6 +680,7 @@ BEGIN
NEW.housenumber := NEW.address->'housenumber';
i := getorcreate_housenumber_id(make_standard_name(NEW.housenumber));
END IF;
NEW.housenumber := transliteration(NEW.housenumber);
addr_street := NEW.address->'street';
addr_place := NEW.address->'place';