Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOCa6-0001YM-M5 for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 00:36:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOCa6-0000qg-8b for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Jun 2017 00:36:14 +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 1dOCa5-0000ko-7t for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 00:36:13 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOCa1-0001N5-2x for pgsql-bugs@postgresql.org; Fri, 23 Jun 2017 00:36:12 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id v5N0a6YR013473; Fri, 23 Jun 2017 09:36:06 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 265165F63F; Fri, 23 Jun 2017 09:36:06 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 19A2F5F631; Fri, 23 Jun 2017 09:36:06 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 1293F400BF9; Fri, 23 Jun 2017 09:36:06 +0900 (JST) Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS References: <20170622172221.qmudrzomu6iolznr@alvherre.pgsql> From: Amit Langote Message-ID: <74102663-d4d0-57ef-ec26-9de49ed40a82@lab.ntt.co.jp> Date: Fri, 23 Jun 2017 09:35:55 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170622172221.qmudrzomu6iolznr@alvherre.pgsql> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit To: Alvaro Herrera Cc: Bruno Wolff III , pgsql-bugs@postgresql.org X-TM-AS-MML: disable 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 On 2017/06/23 2:22, Alvaro Herrera wrote: > Amit Langote wrote: >> On 2017/06/21 11:02, Alvaro Herrera wrote: >>> Bruno Wolff III wrote: >>>> I'm not seeing an obvious error in my attempt to use CREATE STATISTICS IF >>>> NOT EXISTS. Given this is new, maybe there is a bug in the parser. >>> >>> You're absolutely right, and this is a bug in the parser -- I probably >>> misplaced the IF NOT EXISTS clause while playing with Tomas' parser >>> changes. Here's the fix. I'm a bit troubled that this change doesn't >>> seem to affect any tests, so I'll add some before pushing. >> >> I posted the same patch but with a test: >> >> https://www.postgresql.org/message-id/38b7d52e-387a-0e47-7525-b8b654ca4bfb%40lab.ntt.co.jp > > Pushed. Thanks, Alvaro. Regards, Amit -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs