[GENERAL] tsquery error - Mailing list pgsql-general

From Stephen Davies
Subject [GENERAL] tsquery error
Date
Msg-id b690d36e-337e-542a-0d6c-4114192b8902@sdc.com.au
Whole thread Raw
Responses Re: [GENERAL] tsquery error
List pgsql-general
The following query give the error:

select
id,title,dtype,source,used_for,ts_headline('english',content,to_tsquery('english','
ma waterflux'),'minWords = 99, maxWords = 999') from info where  clob @@
to_tsquery('english',' ma waterflux') order by title,dtype,source,used_for;
ERROR:  syntax error in tsquery: " ma waterflux"

Remove either the "ma" or the "waterflux" and the query works.

What is causing the error?

(MA Waterflux is a product name.)

Cheers and thanks,
Stephen



pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: Re: [GENERAL] How to handle simultaneous FOR-IN UPDATE-RETURNING loops?
Next
From: Krithika Venkatesh
Date:
Subject: [GENERAL] Materialised view - refresh