From: | "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> |
---|---|
To: | "Patches" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Bunch of tsearch fixes and cleanup |
Date: | 2007-08-23 14:17:55 |
Message-ID: | 46CD9713.6080107@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Fixes the following bugs:
- ispell initialization crashed on empty dictionary file
- ispell initialization crashed on affix file with prefixes but no suffixes
- stop words file was ran through pg_verify_mbstr, with database
encoding, but it's later interpreted as being UTF-8. Now verifies that
it's UTF-8, regardless of database encoding.
Other changes:
- readstopwords now sorts the stop words after loading them. Removed the
separate sortstopwords function.
- readstopwords calls recode_and_lowerstr directly, instead of using the
"wordop" function pointer in StopList struct. All callers used
recode_and_lowerstr anyway, so this simplifies the code a little bit. Is
there any external dictionary implementations that would require
different behavior?
- bunch of comments added, typos fixed, and other cleanup
The code still needs lots of love, but it's a start...
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
tsearch-fixes-1.patch | text/x-diff | 24.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-08-23 14:49:27 | Re: Bunch of tsearch fixes and cleanup |
Previous Message | Marko Kreen | 2007-08-23 08:54:58 | Re: BUG #3571: call to decrypt causes segfault |