ALTER_TEXT_SEARCH_TEMPLATE(7pg13)

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

πŸ’… ALTER TEXT SEARCH TEMPLATE β€” the glow-up page (7pg13)

okay so bestie, welcome to the ALTER TEXT SEARCH TEMPLATE manual page, from the PostgreSQL 13.23 docs. yes the real title got chopped into ALTER TEX... TEMPLATE(7) up in the header because man page headers have zero chill about column width, but you and me? we know the full name. πŸŽ€


✨ NAME ✨

ALTER_TEXT_SEARCH_TEMPLATE β€” change the definition of a text search template. that's it. that's the whole vibe. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name
ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema

two moves. two icons. pick your fighter. πŸ‘‘


🌸 DESCRIPTION 🌸

so ALTER TEXT SEARCH TEMPLATE changes the definition of a text search template. and like, "changes the definition" sounds all dramatic and main-character, but rn the only supported functionality is to change the template's name. that's it. that's the entire menu. no cap. 🫢

⚠️ real talk: you must be a superuser to use ALTER TEXT SEARCH TEMPLATE. not optional. not negotiable. if you're not a superuser, the vibe check fails, and honestly? that's on you for not having the perms.

πŸŽ€ PARAMETERS πŸŽ€

  • name β€” the name (optionally schema-qualified) of an existing text search template. the whole "optionally schema-qualified" thing is doing a lot of heavy lifting here β€” it means you can say where it lives if you need to. lowkey useful. ✨
  • new_name β€” the new name of the text search template. this is the rebrand. the rename. the "new year new me." πŸ’…
  • new_schema β€” the new schema for the text search template. moving house, template edition. 🏠

πŸ’€ COMPATIBILITY πŸ’€

there is no ALTER TEXT SEARCH TEMPLATE statement in the SQL standard. none. doesn't exist. so if you're out here expecting standard-compliance points for this one, bestie… no. πŸ™ˆ this is a PostgreSQL-original situation. iykyk.


🌈 SEE ALSO 🌈

like the whole template saga β€” make it, rename it, drop it. character arc complete. πŸ”₯


okay that's the page!! mwah!! πŸ’œ this absolute icon of a manpage came to you courtesy of PostgreSQL 13.23, dated 2025 β€” ALTER TEX... TEMPLATE(7) and out. πŸ“πŸ§šβ­

πŸ“¦ where this page comes from