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

From Tom Lane
Subject Re: Checking is TSearch2 query is valid
Date
Msg-id 3403.1189431586@sss.pgh.pa.us
Whole thread Raw
In response to Re: Checking is TSearch2 query is valid  (Benjamin Arai <me@benjaminarai.com>)
Responses Re: Checking is TSearch2 query is valid
List pgsql-general
Benjamin Arai <me@benjaminarai.com> writes:
> Is there a specific exception code for:
> ERROR:  no operand in tsearch query: "("

regression=# \set VERBOSITY verbose
regression=# select to_tsquery('(');
ERROR:  42601: no operand in tsearch query: "("
LOCATION:  gettoken_query, tsquery.c:163

Seems to be "SYNTAX_ERROR".

            regards, tom lane

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: arrays of foreign keys
Next
From: Richard Huxton
Date:
Subject: Re: audit sql queries