Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN4xx-0003dZ-1o for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Jul 2016 21:11:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bN4xw-0006Tx-L0 for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Jul 2016 21:11:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN4xv-0006Rw-Us for pgsql-bugs@postgresql.org; Tue, 12 Jul 2016 21:11:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN4xr-0003YC-R6 for pgsql-bugs@postgresql.org; Tue, 12 Jul 2016 21:11:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6CLBWN0006713; Tue, 12 Jul 2016 17:11:32 -0400 From: Tom Lane To: David Kellum cc: pgsql-bugs , Teodor Sigaev Subject: Re: BUG #14245: Segfault on weird to_tsquery 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> Comments: In-reply-to David Kellum message dated "Tue, 12 Jul 2016 13:54:53 -0700" Date: Tue, 12 Jul 2016 17:11:32 -0400 Message-ID: <6712.1468357892@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David Kellum writes: > On Tue, Jul 12, 2016 at 12:42 PM, Tom Lane 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