pgsql: Fix IF NOT EXISTS in CREATE STATISTICS

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix IF NOT EXISTS in CREATE STATISTICS
Date: 2017-06-22 17:21:50
Message-ID: E1dO5ni-0004FU-K5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix IF NOT EXISTS in CREATE STATISTICS

I misplaced the IF NOT EXISTS clause in commit 7b504eb282, before the
word STATISTICS. Put it where it belongs.

Patch written independently by Amit Langote and myself. I adopted his
submitted test case with a slight edit also.

Reported-by: Bruno Wolff III
Discussion: https://postgr.es/m/20170621004237.GB8337@wolff.to

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5dfd564b1001f20c9def6ae938a92f39ddbd9984

Modified Files
--------------
src/backend/parser/gram.y | 25 ++++++++++++++++++-------
src/test/regress/expected/stats_ext.out | 6 ++++--
src/test/regress/sql/stats_ext.sql | 5 +++--
3 files changed, 25 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-06-22 17:40:40 pgsql: Update out-of-date comment in vacuumlazy.c
Previous Message Robert Haas 2017-06-22 16:50:26 pgsql: postgres_fdw: Move function prototype to correct section.