From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql@tomd.cc
Cc: pgsql-bugs@postgresql.org, Oleg Bartunov <obartunov@gmail.com>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Subject: Re: BUG #14515: tsquery with only a negative term doesn't match empty tsvector
Date: Wed, 25 Jan 2017 22:32:28 -0500
Message-ID: <30721.1485401548@sss.pgh.pa.us> (raw)
In-Reply-To: <20170126025524.1434.97828@wrigleys.postgresql.org>
References: <20170126025524.1434.97828@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
pgsql@tomd.cc writes:
> Basically while `select 'somethingelse'::tsvector @@ '!foo'::tsquery`
> returns true, `select ''::tsvector @@ '!foo'::tsquery` returns false, which
> was surprising to me.
Not sure about this. A plausible reading of '!foo' is "there is a lexeme
that is not foo". But even if that was Oleg & Teodor's intention,
I would not want to swear that the tsquery stuff is totally consistent
about it ...
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql@tomd.cc, obartunov@gmail.com, teodor@sigaev.ru
Subject: Re: BUG #14515: tsquery with only a negative term doesn't match empty tsvector
In-Reply-To: <30721.1485401548@sss.pgh.pa.us>
* 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