ALTER TEXT SEARCH TEMPLATE
Read PG 18 manual ↗change the definition of a text search template
Syntax
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
ALTER TEXT SEARCH TEMPLATE · Syntax 2
Description
ALTER TEXT SEARCH TEMPLATE changes the definition of a text search template. Currently, the only supported functionality is to change the template's name.
You must be a superuser to use ALTER TEXT SEARCH TEMPLATE.
Parameters
nameThe name (optionally schema-qualified) of an existing text search template.
new_nameThe new name of the text search template.
new_schemaThe new schema for the text search template.
Compatibility
There is no ALTER TEXT SEARCH TEMPLATE statement in the SQL standard.
See Also
CREATE TEXT SEARCH TEMPLATE, DROP TEXT SEARCH TEMPLATERelated entries
Definition snapshot: 2026-09-14T13:14:25.700916+00:00@99e6866c · English manual source