2 doc/src/sgml/ref/drop_tsparser.sgml
3 PostgreSQL documentation
6 <refentry id="SQL-DROPTSPARSER">
8 <refentrytitle>DROP TEXT SEARCH PARSER</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements</refmiscinfo>
14 <refname>DROP TEXT SEARCH PARSER</refname>
15 <refpurpose>remove a text search parser</refpurpose>
18 <indexterm zone="sql-droptsparser">
19 <primary>DROP TEXT SEARCH PARSER</primary>
24 DROP TEXT SEARCH PARSER [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [ CASCADE | RESTRICT ]
29 <title>Description</title>
32 <command>DROP TEXT SEARCH PARSER</command> drops an existing text search
33 parser. You must be a superuser to use this command.
38 <title>Parameters</title>
43 <term><literal>IF EXISTS</literal></term>
46 Do not throw an error if the text search parser does not exist.
47 A notice is issued in this case.
53 <term><replaceable class="parameter">name</replaceable></term>
56 The name (optionally schema-qualified) of an existing text search parser.
62 <term><literal>CASCADE</literal></term>
65 Automatically drop objects that depend on the text search parser.
71 <term><literal>RESTRICT</literal></term>
74 Refuse to drop the text search parser if any objects depend on it.
83 <title>Examples</title>
86 Remove the text search parser <literal>my_parser</literal>:
89 DROP TEXT SEARCH PARSER my_parser;
92 This command will not succeed if there are any existing text search
93 configurations that use the parser. Add <literal>CASCADE</> to
94 drop such configurations along with the parser.
99 <title>Compatibility</title>
102 There is no <command>DROP TEXT SEARCH PARSER</command> statement in the
108 <title>See Also</title>
110 <simplelist type="inline">
111 <member><xref linkend="sql-altertsparser"></member>
112 <member><xref linkend="sql-createtsparser"></member>