DROP_TEXT_SEARCH_CONFIGURATION(7pg17)
okay bestie, this is the DROP TEXT SEARCH CONFIGURATION page straight out of the PostgreSQL 17.11 documentation, and it is lowkey the βyeet that text search configurationβ command. no cap π
π NAME π
DROP_TEXT_SEARCH_CONFIGURATION β remove a text search configuration.
β¨ SYNOPSIS β¨
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
π¦ DESCRIPTION π¦
DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. tiny catch though: to execute this command you must be the owner of the configuration. owner energy required, periodt π
π PARAMETERS π
IF EXISTSβ do not throw an error if the text search configuration does not exist. a notice is issued in this case. so itβs like βbestie, itβs already goneβ but in notice form π«Άnameβ the name (optionally schema-qualified) of an existing text search configuration.CASCADEβ automatically drop objects that depend on the text search configuration, and in turn all objects that depend on those objects (see Section 5.15). itβs giving domino effect β¨RESTRICTβ refuse to drop the text search configuration if any objects depend on it. this is the default. so restrictive is the default vibe π
π 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. like, the indexes are clingy, and CASCADE is the friend who helps you pack ππ
π COMPATIBILITY π
there is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard. not in the standard, no cap π
π SEE ALSO π
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))CREATE TEXT SEARCH CONFIGURATION(CREATE_TEXT_SEARCH_CONFIGURATION(7))
footer sign-off, bestie: PostgreSQL 17.11, 2026, and the DROP TEXT...IGURATION(7) tag. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms