pgsql: Cleanup for some problems in tsearch patch: - ispell

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cleanup for some problems in tsearch patch: - ispell
Date: 2007-08-25 00:03:59
Message-ID: 20070825000359.B04927541EA@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Cleanup for some problems in tsearch patch:
- ispell initialization crashed on empty dictionary file
- ispell initialization crashed on affix file with prefixes but no suffixes
- stop words file was run through pg_verify_mbstr, with database
encoding, but it's supposed to be UTF-8; similar bug for synonym files
- bunch of comments added, typos fixed, and other cleanup

Introduced consistent encoding checking/conversion of data read from tsearch
configuration files, by doing this in a single t_readline() subroutine
(replacing direct usages of fgets). Cleaned up API for readstopwords too.

Heikki Linnakangas

Modified Files:
--------------
pgsql/src/backend/snowball:
dict_snowball.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/snowball/dict_snowball.c?r1=1.2&r2=1.3)
pgsql/src/backend/tsearch:
dict_ispell.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_ispell.c?r1=1.2&r2=1.3)
dict_simple.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_simple.c?r1=1.2&r2=1.3)
dict_synonym.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_synonym.c?r1=1.2&r2=1.3)
dict_thesaurus.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_thesaurus.c?r1=1.2&r2=1.3)
spell.c (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/spell.c?r1=1.1&r2=1.2)
ts_locale.c (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_locale.c?r1=1.1&r2=1.2)
ts_parse.c (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_parse.c?r1=1.1&r2=1.2)
ts_utils.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_utils.c?r1=1.2&r2=1.3)
wparser.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/wparser.c?r1=1.2&r2=1.3)
pgsql/src/include/tsearch/dicts:
spell.h (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/dicts/spell.h?r1=1.1&r2=1.2)
pgsql/src/include/tsearch:
ts_locale.h (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_locale.h?r1=1.1&r2=1.2)
ts_public.h (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_public.h?r1=1.2&r2=1.3)
ts_utils.h (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_utils.h?r1=1.1&r2=1.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-08-25 01:06:25 pgsql: Rename built-in Snowball stemmer dictionaries to be english_stem,
Previous Message User Andrewd 2007-08-24 21:36:10 pgbuildfarm - client-code: improve defaults and bring up to date