DROP_TEXT_SEARCH_CONFIGURATION(7pg15)
π DROP TEXT SEARCH CONFIGURATION π
okay bestie, welcome to the DROP TEXT SEARCH CONFIGURATION page β this is the PostgreSQL 15.19 Documentation entry (manual 7pg15), and yes it's a whole little era of its own. buckle up π
β¨ NAME β¨
DROP_TEXT_SEARCH_CONFIGURATION β bestie, this is literally the "remove a text search configuration" command. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at her. iconic square brackets, main character energy. π
πΈ DESCRIPTION πΈ
okay so DROP TEXT SEARCH CONFIGURATION drops an existing text search configuration. gone. deleted. not me being dramatic, it's just what she does π
but listen β to actually run this command you must be the owner of the configuration. no ownership, no dropping. that's the rule, periodt. π
π¦ PARAMETERS π¦
IF EXISTSβ do not throw an error if the text search configuration doesn't exist. ngl that's so forgiving of her π₯Ί a notice is issued in this case, so you still get a little whisper about it.nameβ the name (optionally schema-qualified) of an existing text search configuration. just point at her and say bye π«Ά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, lowkey πRESTRICTβ refuse to drop the text search configuration if any objects depend on it. this one is β¨the defaultβ¨ so if you don't say anything, she's already in her cautious era π
π 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. if you're in that situation, addCASCADEto drop such indexes along with the text search configuration. highkey important, don't skip this one π
π§ COMPATIBILITY π§
there is no DROP TEXT SEARCH CONFIGURATION statement in the SQL standard. so she's built different, and that's on that π
β¨
β SEE ALSO β
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))CREATE TEXT SEARCH CONFIGURATION(CREATE_TEXT_SEARCH_CONFIGURATION(7))
go read those too, iykyk ππ
and that's the whole page, bestie!! mwah π this little beauty is from PostgreSQL 15.19, and she's dated 2026 β go off, queen ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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