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

From Bruno Wolff III
Subject [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date
Msg-id 20170621004237.GB8337@wolff.to
Whole thread Raw
Responses Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-bugs
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.

Sample output:
psql (10beta1)
Type "help" for help.

o365logs=# select version();                                                 version
             
 
--------------------------------------------------------------------------------
----------------------------PostgreSQL 10beta1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623(Red Hat
4.8.5-11),64-bit
 
(1 row)

o365logs=# CREATE STATISTICS IF NOT EXISTS logs_corrtest (dependencies) ON record_type, operation FROM logs;
ERROR:  syntax error at or near "NOT"
LINE 1: CREATE STATISTICS IF NOT EXISTS logs_corrtest (dependencies)...                            ^
o365logs=# CREATE STATISTICS logs_corrtest (dependencies) ON record_type, operation FROM logs;
CREATE STATISTICS
o365logs=# DROP STATISTICS IF EXISTS logs_corrtest;
DROP STATISTICS
o365logs=# 



-- 
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: Mohamed Akram
Date:
Subject: Re: [BUGS] BUG #14670: uuid_generate_v3 and uuid_generate_v5 do notsupport binary names
Next
From: Amit Langote
Date:
Subject: Re: [BUGS] Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS