]> granicus.if.org Git - postgresql/commit
Fix IF NOT EXISTS in CREATE STATISTICS
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 22 Jun 2017 17:17:08 +0000 (13:17 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 22 Jun 2017 17:17:08 +0000 (13:17 -0400)
commit5dfd564b1001f20c9def6ae938a92f39ddbd9984
treebeb94359ff42b479a82f11cea42413cad446df1e
parent2c77903b2bfba01f159138ba34b95d4b470395a8
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
src/backend/parser/gram.y
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql