{"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","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"],"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":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","slug":"18"},"group":"textsearch","group_label":"Text Search Functions And Operators","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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"ts-debug","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"ts_debug","Summary":"根据指定的或默认的文本检索配置从document中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见第 12.8.1 节。","BodyHTML":"根据指定的或默认的文本检索配置从\u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" rel=\"nofollow\"\u003e第 12.8.1 节\u003c/a\u003e。\u003cpre\u003ets_debug ( [ config regconfig, ] document text ) → setof record ( alias text, description text, token text, dictionaries regdictionary[], dictionary regdictionary, lexemes text[] )\u003c/pre\u003e根据指定的或默认的文本检索配置从\u003cem\u003e\u003ccode\u003edocument\u003c/code\u003e\u003c/em\u003e中提取和正规化词元，并返回关于每个词元是如何处理的信息。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-CONFIGURATION-TESTING\" rel=\"nofollow\"\u003e第 12.8.1 节\u003c/a\u003e。","SourceRevision":"1b5ca64c","ContentHash":"547e44ba2a1cb12da512c4c4baaa6c2243f5cd771cc2dac667c4ee032ad8d44d","Payload":{"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。","signatures":[{"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。","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":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"8eff1815c49b9bcc09d9a67037419bda0fe74e4e478bb443cace24a1e133938c","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
