DROP TEXT SEARCH PARSER
remove a text search parser
English manual coverage begins with PostgreSQL 6.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- anchor
- SQL-DROPTSPARSER
- file
- sql-droptsparser.html
- lang
- en
- name
- DROP TEXT SEARCH PARSER
- purpose
- remove a text search parser
- purpose zh
- 移除一个文本检索解析器
- sections same as
- Unknown
- slug
- 18
- synopsis html
- DROP TEXT SEARCH PARSER [ IF EXISTS ] <em class="replaceable"><code>name</code></em> [ CASCADE | RESTRICT ]
- synopsis text
- DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Syntax
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Definition PG 18
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Description
DROP TEXT SEARCH PARSER drops an existing text search parser. You must be a superuser to use this command.
Parameters
IF EXISTSDo not throw an error if the text search parser does not exist. A notice is issued in this case.
nameThe name (optionally schema-qualified) of an existing text search parser.
CASCADEAutomatically drop objects that depend on the text search parser, and in turn all objects that depend on those objects (see Section 5.15).
RESTRICTRefuse to drop the text search parser if any objects depend on it. This is the default.
Examples
Remove the text search parser my_parser:
DROP TEXT SEARCH PARSER my_parser;
This command will not succeed if there are any existing text search configurations that use the parser. Add CASCADE to drop such configurations along with the parser.
Compatibility
There is no DROP TEXT SEARCH PARSER statement in the SQL standard.
See Also
ALTER TEXT SEARCH PARSER, CREATE TEXT SEARCH PARSERCompare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:8d1f56692dfd2189ca93b2d8776b47bbad6268dfb132b459c53642fd2d04e8ef
Text language: en · wiki-repair-20261023:8d1f56692dfd2189ca93b2d8776b47bbad6268dfb132b459c53642fd2d04e8ef