doc-exports/docs/dws/dev/dws_04_0627.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

8.4 KiB

PG_TS_PARSER

PG_TS_PARSER records entries defining text search parsers. A parser splits input text into lexemes and assigns a token type to each lexeme. Since a parser must be implemented by C functions, parsers can be created only by database administrators.

Table 1 PG_TS_PARSER columns

Name

Type

Reference

Description

oid

oid

-

Row identifier (hidden attribute; must be explicitly selected)

prsname

name

-

Text search parser name

prsnamespace

oid

PG_NAMESPACE.oid

OID of the namespace that contains the parser

prsstart

regproc

PG_PROC.oid

OID of the parser's startup function

prstoken

regproc

PG_PROC.oid

OID of the parser's next-token function

prsend

regproc

PG_PROC.oid

OID of the parser's shutdown function

prsheadline

regproc

PG_PROC.oid

OID of the parser's headline function

prslextype

regproc

PG_PROC.oid

OID of the parser's lextype function