2 .\" Title: DROP TEXT SEARCH TEMPLATE
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "DROP TEXT SEARCH TEMPLATE" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 DROP_TEXT_SEARCH_TEMPLATE \- remove a text search template
35 DROP TEXT SEARCH TEMPLATE [ IF EXISTS ] \fIname\fR [ CASCADE | RESTRICT ]
39 \fBDROP TEXT SEARCH TEMPLATE\fR
40 drops an existing text search template\&. You must be a superuser to use this command\&.
45 Do not throw an error if the text search template does not exist\&. A notice is issued in this case\&.
50 The name (optionally schema\-qualified) of an existing text search template\&.
55 Automatically drop objects that depend on the text search template, and in turn all objects that depend on those objects (see
61 Refuse to drop the text search template if any objects depend on it\&. This is the default\&.
65 Remove the text search template
72 DROP TEXT SEARCH TEMPLATE thesaurus;
78 This command will not succeed if there are any existing text search dictionaries that use the template\&. Add
80 to drop such dictionaries along with the template\&.
84 \fBDROP TEXT SEARCH TEMPLATE\fR
85 statement in the SQL standard\&.
87 ALTER TEXT SEARCH TEMPLATE (\fBALTER_TEXT_SEARCH_TEMPLATE\fR(7)), CREATE TEXT SEARCH TEMPLATE (\fBCREATE_TEXT_SEARCH_TEMPLATE\fR(7))