Checking is TSearch2 query is valid

From: Benjamin Arai <me(at)benjaminarai(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Checking is TSearch2 query is valid
Date: 2007-09-09 05:32:23
Message-ID: 01D6B981-B388-40AA-9088-D6361549569D@benjaminarai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2007-09-09 05:45:54 Re: Checking is TSearch2 query is valid
Previous Message Ron Johnson 2007-09-09 03:46:34 Re: Scalability Design Questions