ALTER TEXT SEARCH TEMPLATE

|  ALTER TEXT SEARCH TEMPLATE  |                       |            |                  |                              |
|:----------------------------:|-----------------------|------------|------------------|------------------------------|
|[Prev](sql-altertsparser.html)|[Up](sql-commands.html)|SQL Commands|[Home](index.html)| [Next](sql-altertrigger.html)|

---

[]()

## ALTER TEXT SEARCH TEMPLATE

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

`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

*`name`*

 The name (optionally schema-qualified) of an existing text search template.

*`new_name`*

 The new name of the text search template.

*`new_schema`*

 The 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](sql-createtstemplate.html), [DROP TEXT SEARCH TEMPLATE](sql-droptstemplate.html)

---

|[Prev](sql-altertsparser.html)|[Up](sql-commands.html)| [Next](sql-altertrigger.html)|
|:-----------------------------|:---------------------:|-----------------------------:|
|   ALTER TEXT SEARCH PARSER   |  [Home](index.html)   |         ALTER TRIGGER        |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>