Fix IF NOT EXISTS in CREATE STATISTICS
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/gram.y | modified | +18 −7 |
| src/test/regress/expected/stats_ext.out | modified | +4 −2 |
| src/test/regress/sql/stats_ext.sql | modified | +3 −2 |
Discussion
- Beta 10 parser error for CREATE STATISTICS IF NOT EXISTS 8 messages · 2017-06-21 → 2017-06-23