DROP_TEXT_SEARCH_CONFIGURATION(7pg16)
π NAME π
DROP_TEXT_SEARCH_CONFIGURATION β bestie, this is the command that removes a text search configuration. Manual page DROP_TEXT_SEARCH_CONFIGURATION(7pg16), straight from the PostgreSQL 16.15 docs. We love a cleanup moment. β¨
π¦ SYNOPSIS π¦
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
πΈ DESCRIPTION πΈ
Okay so DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. To execute this command you must be the owner of the configuration. Owner energy only, no cap. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the text search configuration does not exist. A notice is issued in this case. Lowkey forgiving. π«Άnameβ the name (optionally schema-qualified) of an existing text search configuration. Yes, schema-qualified is allowed. πCASCADEβ automatically drop objects that depend on the text search configuration, and in turn all objects that depend on those objects (see Section 5.14). It's giving βclean up the whole friend group.β π§ΉRESTRICTβ refuse to drop the text search configuration if any objects depend on it. This is the default. It's the βnope, not touching thatβ setting. π
π₯ EXAMPLES π₯
Remove the text search configuration my_english:
DROP TEXT SEARCH CONFIGURATION my_english;
Heads up bestie: this command will not succeed if there are any existing indexes that reference the configuration into_tsvectorcalls. AddCASCADEto drop such indexes along with the text search configuration. π
π COMPATIBILITY π
There is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard. Periodt. π
π SEE ALSO π
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))CREATE TEXT SEARCH CONFIGURATION(CREATE_TEXT_SEARCH_CONFIGURATION(7))
π cute sign-off: source/version is PostgreSQL 16.15, dated 2026. Go forth and drop responsibly, bestie. ππ¦π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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