Re: tsearch2 error msg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: tsearch2 error msg
Date: 2006-10-03 22:28:14
Message-ID: 25118.1159914494@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> On Tue, Oct 03, 2006 at 04:34:06PM +0200, Magnus Hagander wrote:
>> search=3D# select to_tsquery('foo bar');
>> ERROR: syntax error

> Seems to me, at the very least, the message should be:
> ERROR: tsearch: syntax error

No, it should be something like

syntax error in tsearch query: "contents of string"

since it's not always the case that you know exactly what string got fed
to to_tsquery().

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Luke Lonergan 2006-10-03 22:32:14 Re: PG qsort vs. Solaris
Previous Message Mark Kirkwood 2006-10-03 21:58:22 Re: PG qsort vs. Solaris