Re: followed by example doesn't work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: barbiomalefico(at)gmail(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: followed by example doesn't work
Date: 2017-12-03 15:22:33
Message-ID: 27323.1512314553@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

barbiomalefico(at)gmail(dot)com writes:
> I copied the text in the followed by example: SELECT to_tsvector(&#39;fatal
> error&#39;) @@ to_tsquery(&#39;fatal &lt;-&gt; error&#39;);
> but it will always goes in error: ERROR: syntax error in tsquery: &quot;fatal
> &lt;-&gt; error&quot;
> SQL state: 42601

The described symptoms sound like you're trying to use <-> with a pre-9.6
server. Since that feature was added in 9.6, it won't work.

We generally don't recommend reading documentation versions that don't
match your server.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2017-12-03 16:40:16 Re: followed by example doesn't work
Previous Message barbiomalefico 2017-12-03 09:35:46 followed by example doesn't work