Fix for fuzzystrmatch

Alexander Korotkov <aekorotkov@gmail.com>

From: Alexander Korotkov <aekorotkov@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-02-19T20:39:27Z
Lists: pgsql-hackers

Attachments

Hacker,

I found two issues in fuzzystrmatch contrib.
1) Incorrect s_data shift in levenshtein calculation with threshold with
multibyte characters. "i" index was used instead of "start_column".
2) Missing dependency of fuzzystrmatch.o on levenshtein.c

Patch is attached.

------
With best regards,
Alexander Korotkov.