diff options
| author | Tom Lane | 2007-08-22 01:39:46 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-08-22 01:39:46 +0000 |
| commit | d321421d0a409ee4473c996fd2275df0ff215eaf (patch) | |
| tree | 016bb5ca76cb61c0876dbc272eb3eb57171d68d8 /src/include/tsearch | |
| parent | fd33d90a23150dec944cdfdf4587f7770543acd1 (diff) | |
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.
Diffstat (limited to 'src/include/tsearch')
| -rw-r--r-- | src/include/tsearch/ts_public.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/include/tsearch/ts_public.h b/src/include/tsearch/ts_public.h index 8e8fa5cc6ff..718abdb61d4 100644 --- a/src/include/tsearch/ts_public.h +++ b/src/include/tsearch/ts_public.h @@ -6,7 +6,7 @@ * * Copyright (c) 1998-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/tsearch/ts_public.h,v 1.1 2007/08/21 01:11:29 tgl Exp $ + * $PostgreSQL: pgsql/src/include/tsearch/ts_public.h,v 1.2 2007/08/22 01:39:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -59,16 +59,6 @@ typedef struct /* * Common useful things for tsearch subsystem */ - -/* simple parser of cfg string looking like "key=val, key='val'" */ -typedef struct -{ - char *key; - char *value; -} Map; - -extern void parse_keyvalpairs(text *in, Map ** m); - extern char *get_tsearch_config_filename(const char *basename, const char *extension); |
