]> begriffs open source - ai-pg/blob - full-docs/txt/sql-droptsparser.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-droptsparser.txt
1
2 DROP TEXT SEARCH PARSER
3
4    DROP TEXT SEARCH PARSER — remove a text search parser
5
6 Synopsis
7
8 DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP TEXT SEARCH PARSER drops an existing text search parser. You must
13    be a superuser to use this command.
14
15 Parameters
16
17    IF EXISTS
18           Do not throw an error if the text search parser does not exist.
19           A notice is issued in this case.
20
21    name
22           The name (optionally schema-qualified) of an existing text
23           search parser.
24
25    CASCADE
26           Automatically drop objects that depend on the text search
27           parser, and in turn all objects that depend on those objects
28           (see Section 5.15).
29
30    RESTRICT
31           Refuse to drop the text search parser if any objects depend on
32           it. This is the default.
33
34 Examples
35
36    Remove the text search parser my_parser:
37 DROP TEXT SEARCH PARSER my_parser;
38
39    This command will not succeed if there are any existing text search
40    configurations that use the parser. Add CASCADE to drop such
41    configurations along with the parser.
42
43 Compatibility
44
45    There is no DROP TEXT SEARCH PARSER statement in the SQL standard.
46
47 See Also
48
49    ALTER TEXT SEARCH PARSER, CREATE TEXT SEARCH PARSER