Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNV9U-0004vP-N8 for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2017 02:13:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dNV9U-0006np-5K for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2017 02:13:52 +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 1dNV8n-0005Yr-Il for pgsql-bugs@postgresql.org; Wed, 21 Jun 2017 02:13:09 +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 1dNV8g-0002lM-A8 for pgsql-bugs@postgresql.org; Wed, 21 Jun 2017 02:13:09 +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 v5L2D0k5029246; Wed, 21 Jun 2017 11:13:00 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 07F605F63F; Wed, 21 Jun 2017 11:13:00 +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 EF75D5F594; Wed, 21 Jun 2017 11:12:59 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id E0402400571; Wed, 21 Jun 2017 11:12:59 +0900 (JST) Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS References: <20170621020210.eqf44aoqjcu3qtma@alvherre.pgsql> From: Amit Langote Message-ID: Date: Wed, 21 Jun 2017 11:12:51 +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: <20170621020210.eqf44aoqjcu3qtma@alvherre.pgsql> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit To: Alvaro Herrera , 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/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 Forgot to cc you or Tomas. Thanks, Amit -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs