search

querytree

Returns the index-searchable portion of a query as text; negative-only queries may have no useful indexable portion.

Formal Syntax & Structure

sql syntaxsql
querytree(query)

Working Example

Example Snippetsql
SELECT querytree(to_tsquery('simple','sql & !guide'));
SQL Reference