Improve error reporting for problems in text search configuration files
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jun 2008 20:55:49 +0000 (20:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jun 2008 20:55:49 +0000 (20:55 +0000)
commitd7bd0c95fd4b4cb362dc0a500afbcd3af43b5e8f
treedb0e2322294363d0e07809071098037b6c8b8c78
parent0d46a39f689a1c89b7f5e7ffedf2d10cc2a3d935
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.
contrib/dict_xsyn/dict_xsyn.c
src/backend/tsearch/dict_synonym.c
src/backend/tsearch/dict_thesaurus.c
src/backend/tsearch/spell.c
src/backend/tsearch/ts_locale.c
src/backend/tsearch/ts_utils.c
src/include/tsearch/ts_locale.h