Results in ERROR: syntax error in tsquery:

From: Kiran <bangalore(dot)kiran(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Results in ERROR: syntax error in tsquery:
Date: 2016-09-19 08:46:30
Message-ID: CAJfd1U5AOxqUA+fij3Zji4TM-J8i7FuZLHqiJvNv=SriHaD1Cw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear All,

I have a ts_vector column in question table called *weighted_tsv*.
I am trying to search using ts_query as follows

SELECT *

FROM question

WHERE weighted_tsv @@ to_tsquery('Hur ofta');

*But the query results in an error as follows:*

ERROR: function ts_query(unknown) does not exist

LINE 1: ...* from question where weighted_tsv @@ ts_query('...

HINT: No function matches the given name and argument types. You might
need to add explicit type casts.

What is the reason I am getting this error I am not able to figure it out.

It would be of great help if anyone point me into right direction.

Thanks

Kiran

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2016-09-19 09:19:31 Re: Results in ERROR: syntax error in tsquery:
Previous Message Chris Withers 2016-09-19 07:40:00 Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains