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

From Tom Lane
Subject Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date
Msg-id 21458.1498010466@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-bugs
Amit Langote <Langote_Amit_f8@lab.ntt.co.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


-- 
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: Amit Langote
Date:
Subject: Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Next
From: Alvaro Herrera
Date:
Subject: Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS