followed by example doesn't work
От
barbiomalefico@gmail.com
Тема
followed by example doesn't work
Дата
Msg-id
20171203093546.27110.95117@wrigleys.postgresql.org
Список
Дерево обсуждения
followed by example doesn't work barbiomalefico@gmail.com
Re: followed by example doesn't work Tom Lane <tgl@sss.pgh.pa.us>
Re: followed by example doesn't work "David G. Johnston" <david.g.johnston@gmail.com>
Re: followed by example doesn't work Rudy Barbieri <barbiomalefico@gmail.com>
Re: followed by example doesn't work Tom Lane <tgl@sss.pgh.pa.us>
Re: followed by example doesn't work Michael Paquier <michael.paquier@gmail.com>
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/9.6/static/textsearch-intro.html
Description:
I copied the text in the followed by example: SELECT to_tsvector('fatal
error') @@ to_tsquery('fatal <-> error');
but it will always goes in error: ERROR: syntax error in tsquery: "fatal
<-> error"
SQL state: 42601
I find two ways to solve the problem:
1. remove the space inside the to_tsquery string to obtain 'fatal<->error'
2. use plainto_tsquery instead of to_tsquery.
В списке pgsql-docs по дате отправления