DROP_TEXT_SEARCH_TEMPLATE(7pg15)
π 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 π
ALTER TEXT SEARCH TEMPLATE(ALTER_TEXT_SEARCH_TEMPLATE(7)) β for when you want to alter instead of drop. πCREATE TEXT SEARCH TEMPLATE(CREATE_TEXT_SEARCH_TEMPLATE(7)) β for when you want to create instead. π
π 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
- 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