pg_ts_template — PostgreSQL system catalog

The PostgreSQL pg_ts_template system catalog: full column reference (names, types, descriptions), catalog relationships and version support.

Summary

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.

(Description quoted from the official PostgreSQL documentation.)

Columns

The pg_ts_template system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):

  • oid oid
    Row identifier
  • tmplname name
    Text search template name
  • tmplnamespace oid references pg_namespace.oid
    The OID of the namespace that contains this template
  • tmplinit regproc references pg_proc.oid
    OID of the template’s initialization function (zero if none)
  • tmpllexize regproc references pg_proc.oid
    OID of the template’s lexize function

Related catalogs

This object references the following other system catalogs:

Version applicability

Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.

Related & references

Reference: PostgreSQL documentation — pg_ts_template.