Redrock Postgres Search Chinese
Version: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14

47.49. pg_ts_parser

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.

PostgreSQL's text search features are described at length in Chapter 12.

Table 47-49. pg_ts_parser Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
prsnamename Text search parser name
prsnamespaceoidpg_namespace.oid The OID of the namespace that contains this parser
prsstartregprocpg_proc.oidOID of the parser's startup function
prstokenregprocpg_proc.oidOID of the parser's next-token function
prsendregprocpg_proc.oidOID of the parser's shutdown function
prsheadlineregprocpg_proc.oidOID of the parser's headline function
prslextyperegprocpg_proc.oidOID of the parser's lextype function