1ALTER TEXT SEARCH DICTIONAPRoYs(t7g)reSQL 10.7 DocumenAtLaTtEiRonTEXT SEARCH DICTIONARY(7)
2
3
4

NAME

6       ALTER_TEXT_SEARCH_DICTIONARY - change the definition of a text search
7       dictionary
8

SYNOPSIS

10       ALTER TEXT SEARCH DICTIONARY name (
11           option [ = value ] [, ... ]
12       )
13       ALTER TEXT SEARCH DICTIONARY name RENAME TO new_name
14       ALTER TEXT SEARCH DICTIONARY name OWNER TO { new_owner | CURRENT_USER | SESSION_USER }
15       ALTER TEXT SEARCH DICTIONARY name SET SCHEMA new_schema
16

DESCRIPTION

18       ALTER TEXT SEARCH DICTIONARY changes the definition of a text search
19       dictionary. You can change the dictionary's template-specific options,
20       or change the dictionary's name or owner.
21
22       You must be the owner of the dictionary to use ALTER TEXT SEARCH
23       DICTIONARY.
24

PARAMETERS

26       name
27           The name (optionally schema-qualified) of an existing text search
28           dictionary.
29
30       option
31           The name of a template-specific option to be set for this
32           dictionary.
33
34       value
35           The new value to use for a template-specific option. If the equal
36           sign and value are omitted, then any previous setting for the
37           option is removed from the dictionary, allowing the default to be
38           used.
39
40       new_name
41           The new name of the text search dictionary.
42
43       new_owner
44           The new owner of the text search dictionary.
45
46       new_schema
47           The new schema for the text search dictionary.
48
49       Template-specific options can appear in any order.
50

EXAMPLES

52       The following example command changes the stopword list for a
53       Snowball-based dictionary. Other parameters remain unchanged.
54
55           ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
56
57       The following example command changes the language option to dutch, and
58       removes the stopword option entirely.
59
60           ALTER TEXT SEARCH DICTIONARY my_dict ( language = dutch, StopWords );
61
62       The following example command “updates” the dictionary's definition
63       without actually changing anything.
64
65           ALTER TEXT SEARCH DICTIONARY my_dict ( dummy );
66
67       (The reason this works is that the option removal code doesn't complain
68       if there is no such option.) This trick is useful when changing
69       configuration files for the dictionary: the ALTER will force existing
70       database sessions to re-read the configuration files, which otherwise
71       they would never do if they had read them earlier.
72

COMPATIBILITY

74       There is no ALTER TEXT SEARCH DICTIONARY statement in the SQL standard.
75

SEE ALSO

77       CREATE TEXT SEARCH DICTIONARY (CREATE_TEXT_SEARCH_DICTIONARY(7)), DROP
78       TEXT SEARCH DICTIONARY (DROP_TEXT_SEARCH_DICTIONARY(7))
79
80
81
82PostgreSQL 10.7                      2019      ALTER TEXT SEARCH DICTIONARY(7)
Impressum