↑↓ 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

ts_token_type

Read the PG 18 manual

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

Reading PG 18current·documented in 20 of 27 versions, 8.3 to 20

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 2
  1. 12 → 13 changed
  2. 8.2 → 8.3 added

Definition snapshot: b7bd9cda · English manual source