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)
commit6680acd480f8f61a45c483f10aef22a9a2ff77be
treef23a52d08e7e8bab3fba37db02d11193af70a51c
parentc69c4ddc250b90119d19a44c21f0476093f5c9cd
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