{"Entry":{"collection":"func","key":"ts-debug","name":"ts_debug","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"9cbd46bc306a44ec2367295d55bac7bf7d198fcb324d9e08f1db1964099aca72","derived_content_hash":"996036057f38137052f8fecc0d0380daab155762c72236a15b1c83dbcb7ac822","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:61896570de2d8842143e1b875cd5aaf06e574076a23ceeb6ed6ec616e73a4ace","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.3","group":"textsearch","group_label":"Text Search Functions And Operators","groups":["textsearch"],"imported_at":"2026-09-27T17:57:28.71685+08:00","last_version":"20","name":"ts_debug","name_key":"ts_debug","position":12012,"present_in":["8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:53a211dec3eb418ea51310e94467c4666b9c705a5b072069e87ad7a2c17710cb","receipt_sha256":"984da0e403042abecad3417c973326db5229314fb927113829665a48521cde79","repair":"wiki-repair-20261023"},"signature":"ts_debug ( [ config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )","signature_count":1,"slug":"ts-debug","source_rev":"wiki-repair-20261023:61896570de2d8842143e1b875cd5aaf06e574076a23ceeb6ed6ec616e73a4ace","summary":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed.","summary_zh":""}},"Definition":{"Collection":"func","Key":"ts-debug","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"ts-debug","SourceRevision":"wiki-repair-20261023:61896570de2d8842143e1b875cd5aaf06e574076a23ceeb6ed6ec616e73a4ace","Facts":{"description":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","description_html":"Extracts and normalizes tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. Configuration Testing\"\u003eSection 12.8.1\u003c/a\u003e for details.","description_zh":"根据指定的或默认的文本检索配置从 document 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见第 12.8.1 节。","description_zh_html":"根据指定的或默认的文本检索配置从 \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. 配置测试\"\u003e第 12.8.1 节\u003c/a\u003e。","doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-textsearch.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","version":"18.7"},{"file":"functions-textsearch.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"d8d1661c6d67bb109c5266be16236950471c11d91181aafa96e9055792c4fa78","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"textsearch","group_label":"文本搜索函数和操作符","lang":"en","layout":"table-new","pages":["functions-textsearch.html"],"prose_only":false,"signatures":[{"description":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","description_html":"Extracts and normalizes tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. Configuration Testing\"\u003eSection 12.8.1\u003c/a\u003e for details.","description_zh":"根据指定的或默认的文本检索配置从 document 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见第 12.8.1 节。","description_zh_html":"根据指定的或默认的文本检索配置从 \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. 配置测试\"\u003e第 12.8.1 节\u003c/a\u003e。","examples":[{"expr":"ts_debug('english', 'The Brightest supernovaes')","result":"(asciiword,\"Word, all ASCII\",The,{english_stem},english_stem,{}) ..."}],"html":"\u003ccode class=\"function\"\u003ets_debug\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ealias\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edescription\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionaries\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary[]\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elexemes\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e )","returns":"setof record","text":"ts_debug ( [config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-textsearch.html","sha256":"8401bb0d06633da86885cceee001a41a7bc026a1e7cb38731a171ec09f7e10a4"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","sha256":"2383d74fd6eee4b71e1b97dec9754623081103120b67a9793f8deac5fff77727","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"ts-debug","SourceDatabase":"center","Version":"18","Locale":"en","Title":"ts_debug","Summary":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","BodyHTML":"Extracts and normalizes tokens from the \u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" rel=\"nofollow\"\u003eSection 12.8.1\u003c/a\u003e for details.","SourceRevision":"wiki-repair-20261023:61896570de2d8842143e1b875cd5aaf06e574076a23ceeb6ed6ec616e73a4ace","ContentHash":"b1fb934b30237f61e5e0d480c9286363a109a256944100d3e3154e429135520d","Payload":{"description":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","description_html":"Extracts and normalizes tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. Configuration Testing\"\u003eSection 12.8.1\u003c/a\u003e for details.","signatures":[{"description":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","description_html":"Extracts and normalizes tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. Configuration Testing\"\u003eSection 12.8.1\u003c/a\u003e for details.","description_zh":"根据指定的或默认的文本检索配置从 document 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见第 12.8.1 节。","description_zh_html":"根据指定的或默认的文本检索配置从 \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. 配置测试\"\u003e第 12.8.1 节\u003c/a\u003e。","examples":[{"expr":"ts_debug('english', 'The Brightest supernovaes')","result":"(asciiword,\"Word, all ASCII\",The,{english_stem},english_stem,{}) ..."}],"html":"\u003ccode class=\"function\"\u003ets_debug\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ealias\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edescription\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionaries\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary[]\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elexemes\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e )","returns":"setof record","text":"ts_debug ( [config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"01cba9fe0e2a93d9668321d5efa4d4c77f16ea089cabe4833942f6b86202ff39","Text":"ts_debug ( [config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )","Returns":"setof record","Payload":{"description":"Extracts and normalizes tokens from the document according to the specified or default text search configuration, and returns information about how each token was processed. See Section 12.8.1 for details.","description_html":"Extracts and normalizes tokens from the \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e according to the specified or default text search configuration, and returns information about how each token was processed. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. Configuration Testing\"\u003eSection 12.8.1\u003c/a\u003e for details.","description_zh":"根据指定的或默认的文本检索配置从 document 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见第 12.8.1 节。","description_zh_html":"根据指定的或默认的文本检索配置从 \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e 中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" title=\"12.8.1. 配置测试\"\u003e第 12.8.1 节\u003c/a\u003e。","examples":[{"expr":"ts_debug('english', 'The Brightest supernovaes')","result":"(asciiword,\"Word, all ASCII\",The,{english_stem},english_stem,{}) ..."}],"html":"\u003ccode class=\"function\"\u003ets_debug\u003c/code\u003e ( [\u003cspan class=\"optional\"\u003e\u003cem class=\"parameter\"\u003e\u003ccode\u003econfig\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregconfig\u003c/code\u003e, \u003c/span\u003e] \u003cem class=\"parameter\"\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ealias\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edescription\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etoken\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionaries\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary[]\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edictionary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eregdictionary\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elexemes\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e )","returns":"setof record","text":"ts_debug ( [config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
