Re: BUG #14245: Segfault on weird to_tsquery

From: Noah Misch <noah(at)leadboat(dot)com>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: David Kellum <david(at)gravitext(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: BUG #14245: Segfault on weird to_tsquery
Date: 2016-07-15 06:42:18
Message-ID: 20160715064218.GA1909315@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Tue, Jul 12, 2016 at 05:11:32PM -0400, Tom Lane wrote:
> David Kellum <david(at)gravitext(dot)com> writes:
> > On Tue, Jul 12, 2016 at 12:42 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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;

[Action required within 72 hours. This is a generic notification.]

The above-described topic is currently a PostgreSQL 9.6 open item. Teodor,
since you committed the patch believed to have created it, you own this open
item. If some other commit is more relevant or if this does not belong as a
9.6 open item, please let us know. Otherwise, please observe the policy on
open item ownership[1] and send a status update within 72 hours of this
message. Include a date for your subsequent status update. Testers may
discover new open items at any time, and I want to plan to get them all fixed
well in advance of shipping 9.6rc1. Consequently, I will appreciate your
efforts toward speedy resolution. Thanks.

[1] http://www.postgresql.org/message-id/20160527025039.GA447393@tornado.leadboat.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message viswatejelpee 2016-07-15 07:01:36 BUG #14252: org.postgresql.util.PSQLException: Too many update results were returned.
Previous Message John R Pierce 2016-07-15 06:12:26 Re: BUG #14251: COPY CSV: missing data for column that shouldn't be

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2016-07-15 08:14:36 Re: sslmode=require fallback
Previous Message Noah Misch 2016-07-15 06:38:54 Re: Document that vacuum can't truncate if old_snapshot_threshold >= 0