pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: pgsql-bugs@postgresql.org
Subject: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
Date: Tue, 20 Jun 2017 19:42:37 -0500
Message-ID: <20170621004237.GB8337@wolff.to> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (8+ messages)  latest in thread

Message-ID: <20170621004237.GB8337@wolff.to>
Permalink:  ../20170621004237.GB8337@wolff.to/
Also on:    postgresql.org/message-id/20170621004237.GB8337@wolff.to

 · 

reply

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: bruno@wolff.to
  Subject: Re: Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS
  In-Reply-To: <20170621004237.GB8337@wolff.to>

* 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