From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Change predecence of phrase operator.
Date: Mon, 27 Jun 2016 17:55:58 +0000
Message-ID: <E1bHalK-00058Q-MC@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Change predecence of phrase operator.
<-> operator now have higher predecence than & (AND) operator. This change
was motivated by unexpected difference of similar queries:
'a & b <-> c'::tsquery and 'b <-> c & a'. Before first query means
(a & b) <-> c and second one - '(b <-> c) & a', now phrase operator evaluates
first.
Per suggestion from Tom Lane 32260.1465402409@sss.pgh.pa.us
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/6734a1cacd44f5b731933cbc93182b135b167d0c
Modified Files
--------------
src/backend/utils/adt/tsquery.c | 114 +++++++++++++++-----------------
src/backend/utils/adt/tsquery_cleanup.c | 17 ++++-
src/include/tsearch/ts_type.h | 16 +----
src/test/regress/expected/tsdicts.out | 12 ++--
src/test/regress/expected/tsearch.out | 18 ++---
src/test/regress/expected/tstypes.out | 78 +++++++++++-----------
6 files changed, 121 insertions(+), 134 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: Change predecence of phrase operator.
In-Reply-To: <E1bHalK-00058Q-MC@gemulon.postgresql.org>
References: <E1bHalK-00058Q-MC@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