Postgresql 中文操作指南

DROP TEXT SEARCH PARSER

DROP TEXT SEARCH PARSER — 移出文本搜索解析器

DROP TEXT SEARCH PARSER — remove a text search parser

Synopsis

DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]

Description

DROP TEXT SEARCH PARSER 删除现有文本搜索解析器。必须是超级用户才能使用此命令。

DROP TEXT SEARCH PARSER drops an existing text search parser. You must be a superuser to use this command.

Parameters

  • IF EXISTS

    • Do not throw an error if the text search parser does not exist. A notice is issued in this case.

  • name

    • The name (optionally schema-qualified) of an existing text search parser.

  • CASCADE

    • Automatically drop objects that depend on the text search parser, and in turn all objects that depend on those objects (see Section 5.14).

  • RESTRICT

    • Refuse to drop the text search parser if any objects depend on it. This is the default.

Examples

移除以下文本搜索解析器 my_parser

Remove the text search parser my_parser:

DROP TEXT SEARCH PARSER my_parser;

如果存在使用该解析器的任何现有文本搜索配置,则此命令不会成功。添加 CASCADE 以删除此类配置以及该解析器。

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

SQL 标准中没有 DROP TEXT SEARCH PARSER 语句。

There is no DROP TEXT SEARCH PARSER statement in the SQL standard.