DROP_TEXT_SEARCH_CONFIGURATION(7pg15)

πŸ“¦ version 15.19, in opensuse-leap 16.0

πŸ’… 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 in to_tsvector calls. if you're in that situation, add CASCADE to 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 ⭐

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