DROP TEXT SEARCH CONFIGURATION
remove a text search configuration
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-DROPTSCONFIG
- file
- sql-droptsconfig.html
- lang
- en
- name
- DROP TEXT SEARCH CONFIGURATION
- purpose
- remove a text search configuration
- purpose zh
- 移除一个文本检索配置
- sections same as
- Unknown
- slug
- 18
- synopsis html
- DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] <em class="replaceable"><code>name</code></em> [ CASCADE | RESTRICT ]
- synopsis text
- DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Syntax
DROP TEXT SEARCH CONFIGURATION [ 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 CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Description
DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. To execute this command you must be the owner of the configuration.
Parameters
IF EXISTSDo not throw an error if the text search configuration does not exist. A notice is issued in this case.
nameThe name (optionally schema-qualified) of an existing text search configuration.
CASCADEAutomatically drop objects that depend on the text search configuration, and in turn all objects that depend on those objects (see Section 5.15).
RESTRICTRefuse to drop the text search configuration if any objects depend on it. This is the default.
Examples
Remove the text search configuration my_english:
DROP TEXT SEARCH CONFIGURATION my_english;
This command will not succeed if there are any existing indexes that reference the configuration in to_tsvector calls. Add CASCADE to drop such indexes along with the text search configuration.
Compatibility
There is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard.
See Also
ALTER TEXT SEARCH CONFIGURATION, CREATE TEXT SEARCH CONFIGURATIONCompare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:b4e2aa09306039b17422fac6390ed5702d5d6928fe784c8d78b51132c5a46fb5
Text language: en · wiki-repair-20261023:b4e2aa09306039b17422fac6390ed5702d5d6928fe784c8d78b51132c5a46fb5