Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c0u7R-00008R-1y for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Oct 2016 17:42:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c0u7Q-0005Ki-7P for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Oct 2016 17:42:04 +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 1c0u62-0003mm-0Y for pgsql-hackers@postgresql.org; Sun, 30 Oct 2016 17:40:38 +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 1c0u5z-0007ZT-8U for pgsql-hackers@postgresql.org; Sun, 30 Oct 2016 17:40:37 +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 u9UHeTc7020110; Sun, 30 Oct 2016 13:40:29 -0400 From: Tom Lane To: Andreas Seltenreich cc: pgsql-hackers@postgresql.org Subject: Re: [sqlsmith] Missing CHECK_FOR_INTERRUPTS in tsquery_rewrite In-reply-to: <18952.1477847966@sss.pgh.pa.us> References: <8760oasf2y.fsf@credativ.de> <18952.1477847966@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 30 Oct 2016 13:19:26 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20108.1477849229.1@sss.pgh.pa.us> Date: Sun, 30 Oct 2016 13:40:29 -0400 Message-ID: <20109.1477849229@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Also, I think this is outright *wrong* for phrase search --- dropping some > of the child nodes without any other adjustment isn't valid is it? After further digging, it seems there's no bug because the tree is originally binary and QTNTernary won't try to flatten OP_PHRASE nodes. So we can't actually get to this logic for such nodes. But seems like an Assert for that wouldn't be a bad thing. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers