Summary
The pg_ts_parser catalog contains entries defining text search parsers. A parser is responsible for splitting input text into lexemes and assigning a token type to each lexeme. Since a parser must be implemented by C-language-level functions, creation of new parsers is restricted to database superusers.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_ts_parser system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierprsnamename
Text search parser nameprsnamespaceoidreferencespg_namespace.oid
The OID of the namespace that contains this parserprsstartregprocreferencespg_proc.oid
OID of the parser’s startup functionprstokenregprocreferencespg_proc.oid
OID of the parser’s next-token functionprsendregprocreferencespg_proc.oid
OID of the parser’s shutdown functionprsheadlineregprocreferencespg_proc.oid
OID of the parser’s headline function (zero if none)prslextyperegprocreferencespg_proc.oid
OID of the parser’s lextype function
Related catalogs
This object references the following other system catalogs:
prsnamespace→pg_namespaceprsstart→pg_proc
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_parser.