DROP_TEXT_SEARCH_DICTIONARY(7pg14)

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

🌸 NAME 🌸

okay so this is the DROP_TEXT_SEARCH_DICTIONARY(7pg14) page, and bestie, it's literally about one thing: removing a text search dictionary. That's it. That's the vibe. DROP TEXT SEARCH DICTIONARY β€” remove a text search dictionary. periodt πŸ’…


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

DROP TEXT SEARCH DICTIONARY drops an existing text search dictionary. iconic behavior, honestly. But listen: to execute this command, you must be the owner of the dictionary. no cap. πŸ‘‘


πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the text search dictionary does not exist. A notice is issued in this case. so it's like, "bestie, it's already gone, we're fine" πŸ’–
  • name β€” the name of an existing text search dictionary, optionally schema-qualified. yes, you can bring the schema along. 🫢
  • 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 chain reaction. πŸ”₯
  • RESTRICT β€” refuse to drop the text search dictionary if any objects depend on it. This is the default. so if you don't say anything, it's lowkey protective. πŸ›‘οΈ

πŸ’€ EXAMPLES πŸ’€

Remove the text search dictionary english:

DROP TEXT SEARCH DICTIONARY english;

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. like, it's not being dramatic, it's just how it works 😭


🌈 COMPATIBILITY 🌈

There is no DROP TEXT SEARCH DICTIONARY statement in the SQL standard. ngl, that's the compatibility tea. 🍡


⭐ SEE ALSO ⭐


πŸ’– cute little sign-off: this page is from PostgreSQL 14.24, dated 2026 β€” mwah, slay, bye bestie 🫢✨

πŸ“¦ where this page comes from