2025年9月25日: PostgreSQL 18 发布!
支持的版本: 当前 (18) / 17 / 16 / 15 / 14 / 13
开发版本: devel
不支持的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3

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

表 52.62. pg_ts_parser

列 类型

描述

oid oid

行标识符

prsname name

全文搜索解析器名称

prsnamespace oid (引用 pg_namespace.oid)

包含此解析器的命名空间的 OID

prsstart regproc (引用 pg_proc.oid)

解析器的启动函数的 OID

prstoken regproc (引用 pg_proc.oid)

解析器的下一个标记函数的 OID

prsend regproc (引用 pg_proc.oid)

解析器的关闭函数的 OID

prsheadline regproc (引用 pg_proc.oid)

解析器的摘要(headline)函数的 OID(如果没有则为零)

prslextype regproc (引用 pg_proc.oid)

解析器的词类(lextype)函数的 OID


提交更正

如果您在文档中发现任何不正确、与您在使用该功能时遇到的情况不符或需要进一步说明的内容,请使用 此表格 报告文档问题。