Checking is TSearch2 query is valid - Mailing list pgsql-general

From Benjamin Arai
Subject Checking is TSearch2 query is valid
Date
Msg-id 01D6B981-B388-40AA-9088-D6361549569D@benjaminarai.com
Whole thread Raw
Responses Re: Checking is TSearch2 query is valid
Re: Checking is TSearch2 query is valid
List pgsql-general
Is there a way to pass a query to PostgreSQL to check if the
TSeasrch2 search text is valid?  For example,

SELECT to_tsquery('default', '!');

returns an error.  I want to know if there is a way  get true/false
for the '!' portion of the query?

Benjamin

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Scalability Design Questions
Next
From: Oleg Bartunov
Date:
Subject: Re: Checking is TSearch2 query is valid