David Kellum <david@gravitext.com> writes:
> On Tue, Jul 12, 2016 at 12:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Note that while crashing is certainly not good, the pre-9.6 behavior
>> can hardly be called correct either. What happened to 'a'?
> 'a' is a stopword, dropped by to_tsquery() as described here:
Ah! OK, so it's probably necessary to have a stopword there in order
to break it.
BTW, all these variants also crash:
select to_tsquery('!(a | !b) & c') as tsquery;
select to_tsquery('!( !b & a) & c') as tsquery;
select to_tsquery('!( !b | a) & c') as tsquery;
regards, tom lane