Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date: 2017-06-21 02:01:06
Message-ID: 21458.1498010466@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> writes:
> On 2017/06/21 9:42, 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.

> Looks like a documentation bug if the authors of the feature actually
> meant to implement the following syntax:
> CREATE [ IF NOT EXISTS ] STATISTICS

Hm, that is what the grammar supports, but surely it's utterly
inconsistent with every other usage of IF NOT EXISTS. Even if
this was intended and the docs were not, we should fix the grammar
to match the docs not vice versa.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2017-06-21 02:02:10 Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Previous Message Amit Langote 2017-06-21 01:55:28 Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2017-06-21 02:02:10 Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Previous Message Amit Langote 2017-06-21 01:55:28 Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS