DROP_TEXT_SEARCH_DICTIONARY(7)

๐Ÿ’… DROP TEXT SEARCH DICTIONARY ๐Ÿ’…

okay bestie, gather round, because we're talking about DROP TEXT SEARCH DICTIONARY from the PostgreSQL 18.6 Documentation โ€” this is the manual page DROP_TEXT_SEARCH_DICTIONARY(7) and she is iconic in a very specific, very niche way. let's get into it โœจ


โœจ NAME โœจ

DROP_TEXT_SEARCH_DICTIONARY โ€” remove a text search dictionary ๐Ÿ—‘๏ธ๐Ÿ’–

no literally that's the whole vibe. we're deleting a dictionary. a text search one. bye babe ๐Ÿ‘‹


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

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

look at her. short. sweet. dangerous. main character energy fr fr ๐Ÿซถ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

DROP TEXT SEARCH DICTIONARY drops an existing text search dictionary. that's it, that's the plot ๐Ÿ’€

but listen โ€” to actually run this command you must be the owner of the dictionary. not a friend of the owner, not someone who once liked the owner's post. the owner. periodt ๐Ÿ‘‘


๐Ÿ’– PARAMETERS ๐Ÿ’–

  • IF EXISTS โ€” do not throw an error if the text search dictionary doesn't exist. instead, a notice gets issued in this case. so like, no drama, just a lil heads up ๐Ÿซถ. it's giving "we're not mad, we're just disappointed" energy.
  • name โ€” the name (optionally schema-qualified) of an existing text search dictionary. yeah, you can schema-qualify it, she's flexible like that ๐Ÿ’….
  • CASCADE โ€” automatically drop objects that depend on the text search dictionary, and in turn all objects that depend on those objects (see Section 5.15). it's a whole chain reaction bestie, dominoes but make it SQL ๐Ÿ”ฅ.
  • 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, she's gonna be cautious. boundaries โœ‹๐Ÿ’–.

๐Ÿฆ‹ EXAMPLES ๐Ÿฆ‹

wanna remove the text search dictionary english? say less:

DROP TEXT SEARCH DICTIONARY english;
heads up though ๐Ÿšจ โ€” this command will not succeed if there are any existing text search configurations that use the dictionary. she's got dependents, she can't just vanish.

if you wanna go full send, add CASCADE to drop such configurations along with the dictionary:

DROP TEXT SEARCH DICTIONARY english CASCADE;

ngl that one's giving a lil unhinged but sometimes you gotta do what you gotta do ๐Ÿ˜ญ


๐ŸŒˆ COMPATIBILITY ๐ŸŒˆ

plot twist: there is no DROP TEXT SEARCH DICTIONARY statement in the SQL standard. so this is pure PostgreSQL original flavor, no cap ๐Ÿ’€โœจ


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

go read those too, they're the prequel and the sequel bestie, you can't skip them ๐ŸŽ€


and that's the whole page!! ๐Ÿฅณ this was PostgreSQL 18.6, dated 2026 โ€” shoutout to the whole documentation team, absolute legends, we love them, we thank them ๐Ÿซถ๐Ÿ’– slay, stay safe, and always check your dependencies before you drop anything. mwah ๐Ÿ’…โœจ