pgsql: Cleanup for some problems in tsearch patch: - ispell - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Cleanup for some problems in tsearch patch: - ispell
Date
Msg-id 20070825000359.B04927541EA@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: andrewd@pgfoundry.org (User Andrewd)
Date:
Subject: pgbuildfarm - client-code: improve defaults and bring up to date
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Rename built-in Snowball stemmer dictionaries to be english_stem,