Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS - Mailing list pgsql-bugs

From Amit Langote
Subject Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date
Msg-id cd372b5a-bda9-6d9e-8310-e60e77ef0ee3@lab.ntt.co.jp
Whole thread Raw
In response to Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Next
From: Ahsan Hadi
Date:
Subject: Re: [BUGS] BUG #14709: inconsistent answers with foreign datawrappers to mysql