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


提交更正

如果您在文件中發現任何不正確、與您在使用該功能時遇到的情況不符或需要進一步說明的內容,請使用 此表格 報告文件問題。