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