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