From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Bruno Wolff III <bruno@wolff.to>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date: Tue, 20 Jun 2017 22:01:06 -0400
Message-ID: <21458.1498010466@sss.pgh.pa.us> (raw)
In-Reply-To: <73b2a51a-3cf9-a44c-4cd0-bbc611016eb4@lab.ntt.co.jp>
References: <20170621004237.GB8337@wolff.to>
<73b2a51a-3cf9-a44c-4cd0-bbc611016eb4@lab.ntt.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, Langote_Amit_f8@lab.ntt.co.jp, bruno@wolff.to
Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
In-Reply-To: <21458.1498010466@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox