pgsql: Improve error reporting for problems in text search configuration

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve error reporting for problems in text search configuration
Date: 2008-06-18 20:55:42
Message-ID: 20080618205542.8D0C9754595@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Improve error reporting for problems in text search configuration files
by installing an error context subroutine that will provide the file name
and line number for all errors detected while reading a config file.
Some of the reader routines were already doing that in an ad-hoc way for
errors detected directly in the reader, but it didn't help for problems
detected in subroutines, such as encoding violations.

Back-patch to 8.3 because 8.3 is where people will be trying to debug
configuration files.

Modified Files:
--------------
pgsql/contrib/dict_xsyn:
dict_xsyn.c (r1.4 -> r1.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/dict_xsyn/dict_xsyn.c?r1=1.4&r2=1.5)
pgsql/src/backend/tsearch:
dict_synonym.c (r1.8 -> r1.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_synonym.c?r1=1.8&r2=1.9)
dict_thesaurus.c (r1.11 -> r1.12)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_thesaurus.c?r1=1.11&r2=1.12)
spell.c (r1.11 -> r1.12)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/spell.c?r1=1.11&r2=1.12)
ts_locale.c (r1.9 -> r1.10)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_locale.c?r1=1.9&r2=1.10)
ts_utils.c (r1.10 -> r1.11)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_utils.c?r1=1.10&r2=1.11)
pgsql/src/include/tsearch:
ts_locale.h (r1.7 -> r1.8)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_locale.h?r1=1.7&r2=1.8)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-06-18 20:55:49 pgsql: Improve error reporting for problems in text search configuration
Previous Message Bruce Momjian 2008-06-18 18:42:54 pgsql: Move wchar2char() and char2wchar() from tsearch into /mb to be