ALTER TEXT SEARCH TEMPLATE
change the definition of a text search template
English manual coverage begins with PostgreSQL 6.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- anchor
- SQL-ALTERTSTEMPLATE
- file
- sql-altertstemplate.html
- lang
- en
- name
- ALTER TEXT SEARCH TEMPLATE
- purpose
- change the definition of a text search template
- purpose zh
- 更改一个文本检索模板的定义
- sections same as
- Unknown
- slug
- 18
- synopsis text
- ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema
Syntax
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name
ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schemaSyntax 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
Definition PG 18
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema
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 TEMPLATECompare versions
Complete source facts
synopsis html
ALTER TEXT SEARCH TEMPLATE <em class="replaceable"><code>name</code></em> RENAME TO <em class="replaceable"><code>new_name</code></em> ALTER TEXT SEARCH TEMPLATE <em class="replaceable"><code>name</code></em> SET SCHEMA <em class="replaceable"><code>new_schema</code></em>
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:adf35815241353b27de3afd602ffaa30cdbd32c085911d1e63487f52fc4c1704
Text language: en · wiki-repair-20261023:adf35815241353b27de3afd602ffaa30cdbd32c085911d1e63487f52fc4c1704