DROP_TEXT_SEARCH_CONFIGURATION(7pg13)

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

πŸ’… 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 in to_tsvector calls. add CASCADE to 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 ⭐


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