There is nice extension in postgres: fuzzystrmatch
<http://stream.boxwatch.ru/docs/9.3/static/fuzzystrmatch.html> I have used
to calculate the distance. From documetation:
SELECT levenshtein_less_equal('extensive', 'exhaustive',2);
You can use it then with your group by query.
--
View this message in context: http://postgresql.nabble.com/Merge-rows-based-on-Levenshtein-distance-tp5828841p5829111.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.