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:49
Message-ID: 20080618205549.CCA5F754595@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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/contrib/dict_xsyn:
dict_xsyn.c (r1.4 -> r1.4.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/dict_xsyn/dict_xsyn.c?r1=1.4&r2=1.4.2.1)
pgsql/src/backend/tsearch:
dict_synonym.c (r1.7 -> r1.7.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_synonym.c?r1=1.7&r2=1.7.2.1)
dict_thesaurus.c (r1.11 -> r1.11.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_thesaurus.c?r1=1.11&r2=1.11.2.1)
spell.c (r1.11 -> r1.11.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/spell.c?r1=1.11&r2=1.11.2.1)
ts_locale.c (r1.7 -> r1.7.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_locale.c?r1=1.7&r2=1.7.2.1)
ts_utils.c (r1.9 -> r1.9.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_utils.c?r1=1.9&r2=1.9.2.1)
pgsql/src/include/tsearch:
ts_locale.h (r1.5 -> r1.5.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/ts_locale.h?r1=1.5&r2=1.5.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-06-18 23:08:47 pgsql: Fix compiler warning introduced by recent patch.
Previous Message Tom Lane 2008-06-18 20:55:42 pgsql: Improve error reporting for problems in text search configuration