DROP_TEXT_SEARCH_TEMPLATE(7pg15)

πŸ“¦ version 15.19, in opensuse-leap 16.0

πŸ’… DROP_TEXT_SEARCH_TEMPLATE(7pg15) πŸ’…

okay bestie, welcome to the manual page for DROP_TEXT_SEARCH_TEMPLATE β€” we’re removing a text search template today, and the vibe is very β€œbye, template, you’re not the main character anymore.” ✨


πŸŽ€ NAME πŸŽ€

DROP_TEXT_SEARCH_TEMPLATE β€” remove a text search template. That’s it, that’s the whole errand. πŸ’–

πŸͺ„ SYNOPSIS πŸͺ„

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

🌸 DESCRIPTION 🌸

okay so DROP TEXT SEARCH TEMPLATE drops an existing text search template. literally its whole job. 🫢

bestie, you must be a superuser to use this command. no cap, it’s superuser-only. πŸ”₯

✨ PARAMETERS ✨

  • IF EXISTS β€” do not throw an error if the text search template does not exist. a notice is issued in this case. so it’s like, β€œokay, it wasn’t there, noted” πŸ’…
  • name β€” the name (optionally schema-qualified) of an existing text search template. πŸŽ€
  • CASCADE β€” automatically drop objects that depend on the text search template, and in turn all objects that depend on those objects (see Section 5.14). it’s giving chain-reaction energy. πŸ’₯
  • RESTRICT β€” refuse to drop the text search template if any objects depend on it. this is the default. πŸ›‘βœ¨

🧚 EXAMPLES 🧚

remove the text search template thesaurus:

DROP TEXT SEARCH TEMPLATE thesaurus;

this command will not succeed if there are any existing text search dictionaries that use the template. add CASCADE to drop such dictionaries along with the template. πŸ˜­πŸ‘‘

πŸ’€ COMPATIBILITY πŸ’€

there is no DROP TEXT SEARCH TEMPLATE statement in the SQL standard. fr fr, standard said β€œnot me.” πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– that’s the tea, bestie: this page is from the PostgreSQL 15.19 documentation, dated 2026. mwah, go drop that template (responsibly). πŸŽ€βœ¨

πŸ“¦ where this page comes from