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

Tom Dunstan <pgsql@tomd.cc>

From: Tom Dunstan <pgsql@tomd.cc>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org, Oleg Bartunov <obartunov@gmail.com>, Teodor Sigaev <teodor@sigaev.ru>
Date: 2017-01-27T05:08:53Z
Lists: pgsql-bugs
> On 27 Jan 2017, at 2:06 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> In short, I now agree both that this is a bug, and that you've correctly
> identified the cause.  Will patch.

Thanks Tom!



Commits

  1. Ensure that a tsquery like '!foo' matches empty tsvectors.

  2. Move some things from builtins.h to new header files