## 52.61. `pg_ts_template`

[]()

 The `pg_ts_template` catalog contains entries defining text search templates. A template is the implementation skeleton for a class of text search dictionaries. Since a template must be implemented by C-language-level functions, creation of new templates is restricted to database superusers.

PostgreSQL's text search features are described at length in [Chapter 12](textsearch.html).

**Table 52.61. `pg_ts_template` Columns**

|                                                         Column Type<br/><br/> Description                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                       `oid` `oid`<br/><br/> Row identifier                                                        |
|                                               `tmplname` `name`<br/><br/> Text search template name                                               |
|`tmplnamespace` `oid` (references [`pg_namespace`](catalog-pg-namespace.html).`oid`)<br/><br/> The OID of the namespace that contains this template|
| `tmplinit` `regproc` (references [`pg_proc`](catalog-pg-proc.html).`oid`)<br/><br/> OID of the template's initialization function (zero if none)  |
|            `tmpllexize` `regproc` (references [`pg_proc`](catalog-pg-proc.html).`oid`)<br/><br/> OID of the template's lexize function            |

