From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Do not fallback to AND for FTS phrase operator.
Date: Mon, 27 Jun 2016 17:48:09 +0000
Message-ID: <E1bHadl-0004yT-Ar@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Do not fallback to AND for FTS phrase operator.
If there is no positional information of lexemes then phrase operator will not
fallback to AND operator. This change makes needing to modify TS_execute()
interface, because somewhere (in indexes, for example) positional information
is unaccesible and in this cases we need to force fallback to AND.
Per discussion c19fcfec308e6ccd952cdde9e648b505@mail.gmail.com
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/3dbbd0f02a257d8d5c4cba14726371505f2e7266
Modified Files
--------------
src/backend/utils/adt/tsginidx.c | 2 +-
src/backend/utils/adt/tsgistidx.c | 6 ++++--
src/backend/utils/adt/tsrank.c | 6 ++++--
src/backend/utils/adt/tsvector_op.c | 35 +++++++++++++++++++----------------
src/include/tsearch/ts_utils.h | 19 ++++++++++++++++++-
src/test/regress/expected/tsearch.out | 9 +++++----
src/test/regress/sql/tsearch.sql | 3 ++-
7 files changed, 53 insertions(+), 27 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Do not fallback to AND for FTS phrase operator.
In-Reply-To: <E1bHadl-0004yT-Ar@gemulon.postgresql.org>
References: <E1bHadl-0004yT-Ar@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox