DROP_TEXT_SEARCH_PARSER(7pg15)
π DROP TEXT SEARCH PARSER (7pg15) π
okay so bestie. you're reading the PostgreSQL 15.19 docs, page DROP_TEXT_SEARCH_PARSER(7), and honestly? this one is short and sweet β a little baby command with a big "i'm the main character" energy. let's get into it π«Ά
β¨ NAME β¨
DROP_TEXT_SEARCH_PARSER β remove a text search parser. that's it. that's the whole vibe. bye parser π
πΈ SYNOPSIS πΈ
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at that. clean. iconic. no cap β¨
π DESCRIPTION π
DROP TEXT SEARCH PARSER drops an existing text search parser. literally just yeets it out of existence π³οΈ
but hold up β you must be a superuser to use this command. no superuser, no drop. that's the rule, bestie, and it's not negotiable π
π PARAMETERS π
IF EXISTSβ do not throw an error if the text search parser does not exist. instead, a notice is issued in this case. so like, it'll gently tell you "hey, that thing wasn't there" instead of full-on screaming at you. very demure, very mindful πnameβ the name (optionally schema-qualified) of an existing text search parser. yes, you can schema-qualify it. yes, you're fancy for doing so π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). chain reaction. domino effect. it's giving "burn it all down" π₯RESTRICTβ refuse to drop the text search parser if any objects depend on it. this is the default. so the safety is on unless you say otherwise π‘οΈ
π¦ EXAMPLES π¦
remove the text search parser my_parser:
DROP TEXT SEARCH PARSER my_parser;
and here's the tea β β this command will not succeed if there are any existing text search configurations that use the parser. add CASCADE to drop such configurations along with the parser. iykyk π
π COMPATIBILITY π
there is no DROP TEXT SEARCH PARSER statement in the SQL standard. so like... this is a PostgreSQL original. exclusive behavior only. π
β¨
β SEE ALSO β
ALTER TEXT SEARCH PARSER(ALTER_TEXT_SEARCH_PARSER(7))CREATE TEXT SEARCH PARSER(CREATE_TEXT_SEARCH_PARSER(7))
go click those if you want the full lore π§
and that's the whole page, bestie, you ate that π PostgreSQL 15.19, dated 2026 β written from the DROP TEXT SEARCH PARSER(7) page, which is genuinely a mouthful to say out loud tbh. now go drop some parsers (responsibly, with RESTRICT on by default) ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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