select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

FUNCTIONS / TEXT SEARCH FUNCTIONS AND OPERATORS

Returns a table that describes each type of token the named parser can recognize.

Signatures & examples

ts_token_type ( parser_name text ) → setof record ( tokid integer, alias text, description text )
Returns a table that describes each type of token the named parser can recognize. See Section 12.8.2 for details.
ts_token_type('default') → (1,asciiword,"Word, all ASCII") ...
ts_token_type ( parser_oid oid ) → setof record ( tokid integer, alias text, description text )
Returns a table that describes each type of token a parser specified by OID can recognize. See Section 12.8.2 for details.
ts_token_type(3722) → (1,asciiword,"Word, all ASCII") ...
Version history 1
  1. PG 12 → 13changed

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source