View Single Post

   
  #8 (permalink)  
Old 04-12-2008, 05:07 AM
Tom Lane
 
Posts: n/a
Default Re: tsearch2 error msg

Martijn van Oosterhout <kleptog@svana.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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Reply With Quote