DROP_TEXT_SEARCH_PARSER(7pg17)
π DROP_TEXT_SEARCH_PARSER π
okay so bestie, welcome to the DROP_TEXT_SEARCH_PARSER page β straight out of the PostgreSQL 17.11 documentation and honestly? it's giving "short but iconic." this is the glow-up where we learn how to remove a text search parser that already exists. no cap, it's not a long read, but every word slays.
β¨ NAME β¨
DROP_TEXT_SEARCH_PARSER β the command that removes a text search parser. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at her. so clean. so structured. the brackets are basically optional accessories and we love an accessible queen. π
π¦ DESCRIPTION π¦
DROP TEXT SEARCH PARSER drops an existing text search parser. simple. elegant. done. β¨
β οΈ okay but the plot twist: you must be a superuser to use this command. no superuser, no dropping. it's giving VIP access only. π
π PARAMETERS π
IF EXISTSβ use this when you're not tryna start drama. do not throw an error if the text search parser doesn't exist. instead, a notice is issued in this case. very "it's okay bestie, moving on." π«Άnameβ the name of an existing text search parser. and yes, it can be optionally schema-qualified, so go ahead and be specific. πCASCADEβ automatically drop objects that depend on the text search parser, and in turn all objects that depend on those objects (see Section 5.15). it's the domino effect, and honestly? kinda main character energy. π₯RESTRICTβ refuse to drop the text search parser if any objects depend on it. this is the default, so if you didn't pick anything, you got boundaries. π
π EXAMPLES π
here's how you remove the text search parser my_parser:
DROP TEXT SEARCH PARSER my_parser;
and listen β this command will not succeed if there are any existing text search configurations that use the parser. shade. π
so if that's your situation, add CASCADE to drop such configurations along with the parser. problem solved, she ate. π
β¨
β COMPATIBILITY β
there is no DROP TEXT SEARCH PARSER statement in the SQL standard. so basically this is a PostgreSQL exclusive and we're not mad about it. periodt. π
π§ SEE ALSO π§
ALTER TEXT SEARCH PARSER(ALTER_TEXT_SEARCH_PARSER(7))CREATE TEXT SEARCH PARSER(CREATE_TEXT_SEARCH_PARSER(7))
and that's the whole page, bestie! π tysm for reading, mwah. this icon was brought to you by PostgreSQL 17.11, dated 2026 β DROP TEXT SEARCH PARSER(7), signing off. π¦πΈπβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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