]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/functions/placex_triggers.sql
move postcode normalization into tokenizer
[nominatim.git] / lib-sql / functions / placex_triggers.sql
index ca9ab5cc550f2889cc3b1653ed75a8aa2067e6ab..922d79bd51b3b0da6d9de7d7e7ee6eb147edcd3b 100644 (file)
@@ -817,10 +817,6 @@ BEGIN
   IF NEW.address is not NULL THEN
       addr_street := NEW.address->'street';
       addr_place := NEW.address->'place';
-
-      IF NEW.address ? 'postcode' and NEW.address->'postcode' not similar to '%(:|,|;)%' THEN
-        i := getorcreate_postcode_id(NEW.address->'postcode');
-      END IF;
   END IF;
 
   NEW.postcode := null;