pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Kellum <david@gravitext.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Subject: Re: BUG #14245: Segfault on weird to_tsquery
Date: Tue, 12 Jul 2016 17:11:32 -0400
Message-ID: <6712.1468357892@sss.pgh.pa.us> (raw)
In-Reply-To: <1468356893.2574.7@smtp.gmail.com>
References: <20160712175855.1414.10498@wrigleys.postgresql.org>
	<2157.1468352545@sss.pgh.pa.us>
	<1468356893.2574.7@smtp.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <6712.1468357892@sss.pgh.pa.us>
Permalink:  ../6712.1468357892@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6712.1468357892@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david@gravitext.com, teodor@sigaev.ru
  Subject: Re: BUG #14245: Segfault on weird to_tsquery
  In-Reply-To: <6712.1468357892@sss.pgh.pa.us>
  References: <20160712175855.1414.10498@wrigleys.postgresql.org> <2157.1468352545@sss.pgh.pa.us> <1468356893.2574.7@smtp.gmail.com> <6712.1468357892@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