Re: [BUGS] BUG #14515: tsquery with only a negative term doesn't match empty tsvector

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #14515: tsquery with only a negative term doesn't match empty tsvector
Дата
Msg-id 30721.1485401548@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUGS] BUG #14515: tsquery with only a negative term doesn't match emptytsvector  (pgsql@tomd.cc)
Ответы Re: [BUGS] BUG #14515: tsquery with only a negative term doesn't match empty tsvector  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql@tomd.cc
Дата:
Сообщение: [BUGS] BUG #14515: tsquery with only a negative term doesn't match emptytsvector
Следующее
От: andrew@tao11.riddles.org.uk
Дата:
Сообщение: [BUGS] BUG #14516: misleading error from libpq on out-of-memory