2 doc/src/sgml/ref/drop_tsconfig.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-droptsconfig">
7 <indexterm zone=
"sql-droptsconfig">
8 <primary>DROP TEXT SEARCH CONFIGURATION
</primary>
12 <refentrytitle>DROP TEXT SEARCH CONFIGURATION
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>DROP TEXT SEARCH CONFIGURATION
</refname>
19 <refpurpose>remove a text search configuration
</refpurpose>
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,
68 and in turn all objects that depend on those objects
69 (see
<xref linkend=
"ddl-depend"/>).
75 <term><literal>RESTRICT
</literal></term>
78 Refuse to drop the text search configuration if any objects depend on it.
87 <title>Examples
</title>
90 Remove the text search configuration
<literal>my_english
</literal>:
93 DROP TEXT SEARCH CONFIGURATION my_english;
96 This command will not succeed if there are any existing indexes
97 that reference the configuration in
<function>to_tsvector
</function> calls.
98 Add
<literal>CASCADE
</literal> to
99 drop such indexes along with the text search configuration.
104 <title>Compatibility
</title>
107 There is no
<command>DROP TEXT SEARCH CONFIGURATION
</command> statement in
113 <title>See Also
</title>
115 <simplelist type=
"inline">
116 <member><xref linkend=
"sql-altertsconfig"/></member>
117 <member><xref linkend=
"sql-createtsconfig"/></member>