pgsql(at)tomd(dot)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