3 PostgreSQL documentation
6 <refentry id=
"SQL-DROPTSCONFIG">
8 <refentrytitle id=
"SQL-DROPTSCONFIG-TITLE">DROP TEXT SEARCH CONFIGURATION
</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
14 <refname>DROP TEXT SEARCH CONFIGURATION
</refname>
15 <refpurpose>remove a text search configuration
</refpurpose>
18 <indexterm zone=
"sql-droptsconfig">
19 <primary>DROP TEXT SEARCH CONFIGURATION
</primary>
24 DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ]
<replaceable class=
"PARAMETER">name
</replaceable> [ CASCADE | RESTRICT ]
29 <title>Description
</title>
32 <command>DROP TEXT SEARCH CONFIGURATION
</command> drops an existing text
33 search configuration. To execute this command you must be the owner of the
39 <title>Parameters
</title>
44 <term><literal>IF EXISTS
</literal></term>
47 Do not throw an error if the text search configuration does not exist.
48 A notice is issued in this case.
54 <term><replaceable class=
"parameter">name
</replaceable></term>
57 The name (optionally schema-qualified) of an existing text search
64 <term><literal>CASCADE
</literal></term>
67 Automatically drop objects that depend on the text search configuration.
73 <term><literal>RESTRICT
</literal></term>
76 Refuse to drop the text search configuration if any objects depend on it.
85 <title>Examples
</title>
88 Remove the text search configuration
<literal>my_english
</literal>:
91 DROP TEXT SEARCH CONFIGURATION my_english;
94 This command will not succeed if there are any existing indexes
95 that reference the configuration in
<function>to_tsvector<
/> calls.
96 Add
<literal>CASCADE<
/> to
97 drop such indexes along with the text search configuration.
102 <title>Compatibility
</title>
105 There is no
<command>DROP TEXT SEARCH CONFIGURATION
</command> statement in
111 <title>See Also
</title>
113 <simplelist type=
"inline">
114 <member><xref linkend=
"sql-altertsconfig" endterm=
"sql-altertsconfig-title"></member>
115 <member><xref linkend=
"sql-createtsconfig" endterm=
"sql-createtsconfig-title"></member>