DROP_TEXT_SEARCH_PARSER(7pg14)
π DROP TEXT SEARCH PARSER (7) β the PostgreSQL 14.24 Documentation glow-up π
okay so bestie, quick vibe check: this page is called DROP TEXT SEARCH PARSER, it lives in the 7 section of the PostgreSQL 14.24 docs, and it's literally about yeeting a text search parser out of existence. iconic destructive behavior, we love to see it π
β¨ NAME β¨
DROP_TEXT_SEARCH_PARSER β remove a text search parser ποΈ
π¦ SYNOPSIS π¦
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at her. short. powerful. a little menacing. π
πΈ DESCRIPTION πΈ
DROP TEXT SEARCH PARSER drops an existing text search parser. that's the whole bit, no cap. it's giving "one job, does it well" energy π
but hear me when i say this: you must be a superuser to use this command. like, actually. not everyone gets to press this button. superuser privileges or it's not happening, periodt π₯
π PARAMETERS π
IF EXISTSβ don't throw an error if the text search parser doesn't exist. instead, a notice gets issued in that case. so it's like "girl, there was nothing there, but ok, we move" π«Άnameβ the name of an existing text search parser. it can optionally be schema-qualified, so you can be all "no, the other one" if you need to πCASCADEβ automatically drop objects that depend on the text search parser, and in turn all objects that depend on those objects (see Section 5.14). it's the domino effect, the whole chain reaction, the "you came for one thing and now everything's gone" special πRESTRICTβ refuse to drop the text search parser if any objects depend on it. this is the default, so if you don't say anything, the parser is protected. she's guarded by default, as she should be π
β EXAMPLES β
remove the text search parser my_parser:
DROP TEXT SEARCH PARSER my_parser;
heads up though β this command will not succeed if there are any existing text search configurations that use the parser. π so if you're getting pushback, that's why. add CASCADE to drop such configurations along with the parser, and then it'll go through. bye bestie βοΈ
π§ COMPATIBILITY π§
there is no DROP TEXT SEARCH PARSER statement in the SQL standard. so this is a PostgreSQL-exclusive experience, iykyk π
β¨
π SEE ALSO π
ALTER TEXT SEARCH PARSER(ALTER_TEXT_SEARCH_PARSER(7))CREATE TEXT SEARCH PARSER(CREATE_TEXT_SEARCH_PARSER(7))
go read those too, they're the prequel and the glow-up sequel to this one π¦
okay that's the whole page bestie, you're officially parser-literate ππ this drop was brought to you by PostgreSQL 14.24, dated 2026, filed under DROP TEX...CH PARSER(7) β yes the header itself got truncated with an ellipsis, and honestly? relatable. she's mysterious. she's iconic. mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms