ALTER_TEXT_SEARCH_TEMPLATE(7)
๐ ALTER TEXT SEARCH TEMPLATE ๐
okay so bestie, this is a page from the PostgreSQL 18.6 Documentation and it's all about the ALTER TEXT SEARCH TEMPLATE command. it's short, it's sweet, it's giving "lowkey one-job wonder" and honestly? we respect it. โจ
๐ธ NAME ๐ธ
ALTER_TEXT_SEARCH_TEMPLATE โ change the definition of a text search template
๐ SYNOPSIS ๐
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name
ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema
โจ DESCRIPTION โจ
So like, ALTER TEXT SEARCH TEMPLATE changes the definition of a text search template. iconic behaviour, truly.
but here's the tea: right now, the only supported functionality is to change the template's name. that's it. that's the whole menu. no cap. ๐ซถ
โ ๏ธ bestie listen โ you must be a superuser to use ALTER TEXT SEARCH TEMPLATE. this is not a drill, this is not a vibe check you can skip. if you're not a superuser, this command is not your moment. ๐
๐ PARAMETERS ๐
nameโ the name of an existing text search template. it can be schema-qualified if you want to be extra specific, which is valid and also kind of main character energy. ๐new_nameโ the new name of the text search template. like a glow-up but for identifiers. โจnew_schemaโ the new schema for the text search template. moving it to a different neighbourhood. ๐ฆ
๐ COMPATIBILITY ๐
ngl, there is no ALTER TEXT SEARCH TEMPLATE statement in the SQL standard. so if you're out here looking for it in the spec... it's not there. fr fr. it's a PostgreSQL original, and that's just the way it is. ๐
๐ SEE ALSO ๐
CREATE TEXT SEARCH TEMPLATE(CREATE_TEXT_SEARCH_TEMPLATE(7))DROP TEXT SEARCH TEMPLATE(DROP_TEXT_SEARCH_TEMPLATE(7))
go read those too, they're part of the squad. ๐ธ
and that's the whole page, bestie!! this was brought to you by PostgreSQL 18.6, dated 2026 โ mwah, take care of your templates, don't forget your superuser powers, and stan a short manpage. ๐๐๐ฆโจ
๐ฆ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms