DROP_TEXT_SEARCH_DICTIONARY(7pg13)

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

πŸ’… DROP_TEXT_SEARCH_DICTIONARY πŸ’…

okay so bestie, this is the DROP_TEXT_SEARCH_DICTIONARY(7pg13) page β€” yes that whole mouthful β€” and it's genuinely just about yeeting a text search dictionary out of existence. that's it. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

DROP_TEXT_SEARCH_DICTIONARY β€” remove a text search dictionary. bye bye dictionary, no cap 🫢


✨ SYNOPSIS ✨

DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]

look at her. so clean. so powerful. the way she just drops things πŸ˜­πŸ’œ


✨ DESCRIPTION ✨

so DROP TEXT SEARCH DICTIONARY drops an existing text search dictionary. iconic behavior honestly. but listen β€” to run this command you must be the owner of the dictionary. not your friend, not your coworker, you. ownership check, periodt πŸ‘‘


✨ PARAMETERS ✨

  • IF EXISTS β€” do not throw an error if the text search dictionary doesn't exist. instead a notice is issued in this case. so like, it's the chill "no worries if not" of SQL options 🌸
  • name β€” the name (optionally schema-qualified) of an existing text search dictionary. yes bestie, schema-qualified is allowed, go off πŸ’…
  • CASCADE β€” automatically drop objects that depend on the text search dictionary, and in turn all objects that depend on those objects (see Section 5.14). it's giving domino effect, it's giving chain reaction πŸ”₯
  • RESTRICT β€” refuse to drop the text search dictionary if any objects depend on it. this is the default. she's cautious, she's sensible, she's the main character of defaults 🧚

✨ EXAMPLES ✨

remove the text search dictionary english:

DROP TEXT SEARCH DICTIONARY english;
⚠️ heads up bestie: this command will not succeed if there are any existing text search configurations that use the dictionary. add CASCADE to drop such configurations along with the dictionary. no cap, this is the part that gets people πŸ’€

✨ COMPATIBILITY ✨

there is no DROP TEXT SEARCH DICTIONARY statement in the SQL standard. so this is a PostgreSQL-only moment, iykyk 🌈⭐


✨ SEE ALSO ✨


and that's the page, bestie! πŸ¦‹ this one's from PostgreSQL 13.23, dated 2025 β€” drop it like it's hot, and stay hydrated πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from