]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commitbedba2cc0e30c68eeef19b7da51e9550164a1942
tree33e7645db37d716cb307aa6677ec10713cdda535
parent01860337c371baea338427c53dacc54fccf7c6df
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