2 .\" Title: ALTER TEXT SEARCH DICTIONARY
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "ALTER TEXT SEARCH DICTIONARY" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 ALTER_TEXT_SEARCH_DICTIONARY \- change the definition of a text search dictionary
35 ALTER TEXT SEARCH DICTIONARY \fIname\fR (
36 \fIoption\fR [ = \fIvalue\fR ] [, \&.\&.\&. ]
38 ALTER TEXT SEARCH DICTIONARY \fIname\fR RENAME TO \fInew_name\fR
39 ALTER TEXT SEARCH DICTIONARY \fIname\fR OWNER TO { \fInew_owner\fR | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
40 ALTER TEXT SEARCH DICTIONARY \fIname\fR SET SCHEMA \fInew_schema\fR
44 \fBALTER TEXT SEARCH DICTIONARY\fR
45 changes the definition of a text search dictionary\&. You can change the dictionary\*(Aqs template\-specific options, or change the dictionary\*(Aqs name or owner\&.
47 You must be the owner of the dictionary to use
48 \fBALTER TEXT SEARCH DICTIONARY\fR\&.
53 The name (optionally schema\-qualified) of an existing text search dictionary\&.
58 The name of a template\-specific option to be set for this dictionary\&.
63 The new value to use for a template\-specific option\&. If the equal sign and value are omitted, then any previous setting for the option is removed from the dictionary, allowing the default to be used\&.
68 The new name of the text search dictionary\&.
73 The new owner of the text search dictionary\&.
78 The new schema for the text search dictionary\&.
81 Template\-specific options can appear in any order\&.
84 The following example command changes the stopword list for a Snowball\-based dictionary\&. Other parameters remain unchanged\&.
90 ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
96 The following example command changes the language option to
97 dutch, and removes the stopword option entirely\&.
103 ALTER TEXT SEARCH DICTIONARY my_dict ( language = dutch, StopWords );
109 The following example command
111 the dictionary\*(Aqs definition without actually changing anything\&.
117 ALTER TEXT SEARCH DICTIONARY my_dict ( dummy );
123 (The reason this works is that the option removal code doesn\*(Aqt complain if there is no such option\&.) This trick is useful when changing configuration files for the dictionary: the
125 will force existing database sessions to re\-read the configuration files, which otherwise they would never do if they had read them earlier\&.
129 \fBALTER TEXT SEARCH DICTIONARY\fR
130 statement in the SQL standard\&.
132 CREATE TEXT SEARCH DICTIONARY (\fBCREATE_TEXT_SEARCH_DICTIONARY\fR(7)), DROP TEXT SEARCH DICTIONARY (\fBDROP_TEXT_SEARCH_DICTIONARY\fR(7))