Re: Adding an alternate syntax for Phrase Search - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Adding an alternate syntax for Phrase Search
Date
Msg-id 57423879.10507@sigaev.ru
Whole thread Raw
In response to Adding an alternate syntax for Phrase Search  (Josh berkus <josh@agliodbs.com>)
Responses Re: Adding an alternate syntax for Phrase Search
List pgsql-hackers
> to_tsquery(' Berkus & "PostgreSQL Version 10.0" ')
>
> ... would be equivalent to:
>
> to_tsquery(' Berkus & ( PostgreSQL <-> version <-> 10.0 )')

select to_tsquery('Berkus') && phraseto_tsquery('PostgreSQL Version 10.0');
does it as you wish

>
> I realize we're already in beta, but pgCon was actually the first time I
> saw the new syntax.  I think if we don't do this now, we'll be doing it
> for 10.0.
Havn't an objections for 10.0
-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Parallel query
Next
From: Andres Freund
Date:
Subject: Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer