Re: Phrase search distance syntax - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Phrase search distance syntax
Date
Msg-id 13118.1474640596@sss.pgh.pa.us
Whole thread Raw
In response to Re: Phrase search distance syntax  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> writes:
>> Why does the phrase distance operator assume <1> means adjacent words,
>> and not <0>.  (FYI, <-> is the same as <1>.)

> Because
> 1 it is a result of subtruction of word's positions
> 2 <0> could be used as special case like a word with two infinitives:

This is actually documented, in 12.1.2:
A special case that's sometimes useful is that <0> can be used torequire that two patterns match the same word.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Windows service is not starting so there’s message in log: FATAL: "could not create shared memory segment “Global/PostgreSQL.851401618”: Permission denied”
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] Remove redundant if clause in standbydesc.c