52.61. pg_ts_template

52.61. `pg_ts_template`
Prev | Up | Chapter 52. System Catalogs | Home | Next

## 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.

Table 52.61. `pg_ts_template` Columns

Name | Type | References | Description
--- | --- | --- | ---
`oid` | `oid` |  | Row identifier (hidden attribute; must be explicitly selected)
`tmplname` | `name` |  | Text search template name
`tmplnamespace` | `oid` | ``pg_namespace`.oid` | The OID of the namespace that contains this template
`tmplinit` | `regproc` | ``pg_proc`.oid` | OID of the template's initialization function
`tmpllexize` | `regproc` | ``pg_proc`.oid` | OID of the template's lexize function

Prev | Up | Next
52.60. `pg_ts_parser` | Home | 52.62. `pg_type`