Re: tsearch2 error msg

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: tsearch2 error msg
Date: 2006-10-03 14:44:31
Message-ID: 4522774F.2070609@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Might want to enhance that message to include the information that it's
> parsing the tsquery that's failing? I originally had it as part of a
> much larger query, and it took me a while to remember that it's tsearch
> that spits out that very generic error message.
It possible, but not for 8.2 :(

BTW, try
# select plainto_tsquery('foo bar');
plainto_tsquery
-----------------
'foo' & 'bar'
(1 row)

It parses plain text and makes tsquery. Function exists only in 8.2 - some later
we add docs about changes in tsearch2.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-10-03 14:45:39 Re: tsearch2 error msg
Previous Message Teodor Sigaev 2006-10-03 14:39:28 src/backend/parser/parse_expr.c:exprTypmod() question