Encapsulate cleaning function and restructure

This commit is contained in:
Carla Iriberri
2015-12-01 14:11:44 +01:00
parent 49eb8213eb
commit 3e8f635404
24 changed files with 25 additions and 768 deletions

View File

@@ -0,0 +1,8 @@
-- Cleaning function
CREATE OR REPLACE FUNCTION geocode_clean_name(name text) RETURNS text
LANGUAGE plpgsql
AS $$
BEGIN
RETURN regexp_replace(name, '[^a-zA-Z\u00C0-\u00ff]+', '', 'g');
END
$$;