DROP_TEXT_SEARCH_CONFIGURATION(7pg13)
π DROP TEXT SEARCH CONFIGURATION π
okay bestie, so you know how the DROP TEXT... page is a whole thing in the PostgreSQL 13.23 docs? yeah, that's this one β it's the DROP_TEXT_SEARCH_CONFIGURATION(7pg13) page and we're gonna get you fluent in it π«Ά
β¨ NAME β¨
DROP_TEXT_SEARCH_CONFIGURATION β literally just yeets a text search configuration out of existence ποΈβ¨
πΈ SYNOPSIS πΈ
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
π DESCRIPTION π
so DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. that's it, that's the vibe π
important though β to run this command you must be the owner of the configuration. no owner, no drop, periodt π
π¦ PARAMETERS π¦
IF EXISTSβ don't throw an error if the text search configuration doesn't exist. instead a notice is issued in this case, so it's giving "gentle heads up" not "full dramatic meltdown" π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.14). it's giving domino effect, ngl π’π’π’RESTRICTβ refuse to drop the text search configuration if any objects depend on it. this is the default, so if you don't say anything, this is what you get π€«
π EXAMPLES π
remove the text search configuration my_english:
DROP TEXT SEARCH CONFIGURATION my_english;
β οΈ heads up: 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. no cap, it will just refuse π
π COMPATIBILITY π
there is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard. so this one's a PostgreSQL original, main character energy only π
β SEE ALSO β
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))CREATE TEXT SEARCH CONFIGURATION(CREATE_TEXT_SEARCH_CONFIGURATION(7))
okay that's the whole page bestie, you ate that ππ this one's from PostgreSQL 13.23, published 2025 β DROP TEXT...IGURATION(7), and that's the tea ββ¨ go drop some configurations (responsibly, with RESTRICT energy) π§π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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