+ -- Debug, what's changed?
+ IF FALSE THEN
+ IF coalesce(existing.name::text, '') != coalesce(NEW.name::text, '') THEN
+ RAISE WARNING 'update details, name: % % % %',NEW.osm_type,NEW.osm_id,existing.name::text,NEW.name::text;
+ END IF;
+ IF coalesce(existing.housenumber, '') != coalesce(NEW.housenumber, '') THEN
+ RAISE WARNING 'update details, housenumber: % % % %',NEW.osm_type,NEW.osm_id,existing.housenumber,NEW.housenumber;
+ END IF;
+ IF coalesce(existing.street, '') != coalesce(NEW.street, '') THEN
+ RAISE WARNING 'update details, street: % % % %',NEW.osm_type,NEW.osm_id,existing.street,NEW.street;
+ END IF;
+ IF coalesce(existing.addr_place, '') != coalesce(NEW.addr_place, '') THEN
+ RAISE WARNING 'update details, street: % % % %',NEW.osm_type,NEW.osm_id,existing.addr_place,NEW.addr_place;
+ END IF;
+ IF coalesce(existing.isin, '') != coalesce(NEW.isin, '') THEN
+ RAISE WARNING 'update details, isin: % % % %',NEW.osm_type,NEW.osm_id,existing.isin,NEW.isin;
+ END IF;
+ IF coalesce(existing.postcode, '') != coalesce(NEW.postcode, '') THEN
+ RAISE WARNING 'update details, postcode: % % % %',NEW.osm_type,NEW.osm_id,existing.postcode,NEW.postcode;
+ END IF;
+ IF coalesce(existing.country_code, '') != coalesce(NEW.country_code, '') THEN
+ RAISE WARNING 'update details, country_code: % % % %',NEW.osm_type,NEW.osm_id,existing.country_code,NEW.country_code;
+ END IF;