Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by treating the
authorTom Lane <[email protected]>
Wed, 22 Aug 2007 01:39:46 +0000 (01:39 +0000)
committerTom Lane <[email protected]>
Wed, 22 Aug 2007 01:39:46 +0000 (01:39 +0000)
commitd321421d0a409ee4473c996fd2275df0ff215eaf
tree016bb5ca76cb61c0876dbc272eb3eb57171d68d8
parentfd33d90a23150dec944cdfdf4587f7770543acd1
Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by treating the
init options of the template as top-level options in the syntax.  This also
makes ALTER a bit easier to use, since options can be replaced individually.
I also made these statements verify that the tmplinit method will accept
the new settings before they get stored; in the original coding you didn't
find out about mistakes until the dictionary got invoked.

Under the hood, init methods now get options as a List of DefElem instead
of a raw text string --- that lets tsearch use existing options-pushing code
instead of duplicating functionality.
17 files changed:
doc/src/sgml/ref/alter_tsdictionary.sgml
doc/src/sgml/ref/create_tsdictionary.sgml
src/backend/commands/tsearchcmds.c
src/backend/snowball/dict_snowball.c
src/backend/snowball/snowball.sql.in
src/backend/tsearch/dict_ispell.c
src/backend/tsearch/dict_simple.c
src/backend/tsearch/dict_thesaurus.c
src/backend/tsearch/ts_utils.c
src/backend/tsearch/wparser.c
src/backend/tsearch/wparser_def.c
src/backend/utils/cache/ts_cache.c
src/bin/pg_dump/pg_dump.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/commands/defrem.h
src/include/tsearch/ts_public.h