{"Entry":{"collection":"func","key":"ts-token-type","name":"ts_token_type","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":"a20cfbf37676815f9cdef78cca32824e54603064db112aba95b9d72005de1192","first_version":"8.3","group":"textsearch","group_label":"Text Search Functions And Operators","groups":["textsearch"],"imported_at":"2026-09-27T17:57:28.742043+08:00","last_version":"20","name":"ts_token_type","name_key":"ts_token_type","position":12022,"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_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )","signature_count":2,"slug":"ts-token-type","source_rev":"b7bd9cda","summary":"Returns a table that describes each type of token the named parser can recognize.","summary_zh":""}},"Definition":{"Collection":"func","Key":"ts-token-type","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"ts-token-type","SourceRevision":"b7bd9cda","Facts":{"description":"Returns a table that describes each type of token the named parser can recognize. See Section 12.8.2 for details.","description_html":"Returns a table that describes each type of token the named parser can recognize. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\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":"Returns a table that describes each type of token the named parser can recognize. See Section 12.8.2 for details.","description_html":"Returns a table that describes each type of token the named parser can recognize. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_token_type('default')","result":"(1,asciiword,\"Word, all ASCII\") ..."}],"html":"\u003ccode class=\"function\"\u003ets_token_type\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_name\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\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 )","returns":"setof record","text":"ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )","zh_from":""},{"description":"Returns a table that describes each type of token a parser specified by OID can recognize. See Section 12.8.2 for details.","description_html":"Returns a table that describes each type of token a parser specified by OID can recognize. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_token_type(3722)","result":"(1,asciiword,\"Word, all ASCII\") ..."}],"html":"\u003ccode class=\"function\"\u003ets_token_type\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_oid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 )","returns":"setof record","text":"ts_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description text )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"TEXTSEARCH-FUNCTIONS-DEBUG-TABLE","file":"functions-textsearch.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"ts-token-type","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"ts_token_type","Summary":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见第 12.8.2 节。","BodyHTML":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。\u003cpre\u003ets_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )\u003c/pre\u003e返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。\u003cpre\u003ets_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description text )\u003c/pre\u003e返回一个表，该表描述 OID 指定的解析器可以识别的每种词元类型。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" rel=\"nofollow\"\u003e第 12.8.2 节\u003c/a\u003e。","SourceRevision":"ca936764","ContentHash":"ead6ec1e5a4302f39a20eb400945675742060231ff6f457c6fa57799619b1395","Payload":{"description_zh":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见第 12.8.2 节。","description_zh_html":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","signatures":[{"description_zh":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见第 12.8.2 节。","description_zh_html":"返回一个表，该表描述指定名称的解析器可以识别的每种类型的词元。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","returns":"setof record","text":"ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )","zh_from":"doc"},{"description_zh":"返回一个表，该表描述 OID 指定的解析器可以识别的每种词元类型。详情参见第 12.8.2 节。","description_zh_html":"返回一个表，该表描述 OID 指定的解析器可以识别的每种词元类型。详情参见\u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. 解析器测试\"\u003e第 12.8.2 节\u003c/a\u003e。","returns":"setof record","text":"ts_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description 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":"523b2b1f83e98a127c7894a409366914ea094fa89a7ab6b0785a0b58e0f5a717","Text":"ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )","Returns":"setof record","Payload":{"description":"Returns a table that describes each type of token the named parser can recognize. See Section 12.8.2 for details.","description_html":"Returns a table that describes each type of token the named parser can recognize. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_token_type('default')","result":"(1,asciiword,\"Word, all ASCII\") ..."}],"html":"\u003ccode class=\"function\"\u003ets_token_type\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_name\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\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 )","returns":"setof record","text":"ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"5cbdb8068462c2395bcdbd92d61387edf869a22eaae55b4405a3fb69e7722e1b","Text":"ts_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description text )","Returns":"setof record","Payload":{"description":"Returns a table that describes each type of token a parser specified by OID can recognize. See Section 12.8.2 for details.","description_html":"Returns a table that describes each type of token a parser specified by OID can recognize. See \u003ca href=\"/docs/18/textsearch-debugging.html#TEXTSEARCH-PARSER-TESTING\" title=\"12.8.2. Parser Testing\"\u003eSection 12.8.2\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[{"expr":"ts_token_type(3722)","result":"(1,asciiword,\"Word, all ASCII\") ..."}],"html":"\u003ccode class=\"function\"\u003ets_token_type\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eparser_oid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etokid\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 )","returns":"setof record","text":"ts_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description text )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
