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 ๐
ALTER TEXT SEARCH DICTIONARY(ALTER_TEXT_SEARCH_DICTIONARY(7))CREATE TEXT SEARCH DICTIONARY(CREATE_TEXT_SEARCH_DICTIONARY(7))
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 ๐ โจ
๐ฆ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms