Fix ALTER TABLE...SET STATS error message for included columns
authorAlvaro Herrera
Tue, 17 Jul 2018 00:00:24 +0000 (20:00 -0400)
committerAlvaro Herrera
Tue, 17 Jul 2018 00:00:39 +0000 (20:00 -0400)
commitcb9db2ab0674381b92559e011738f19e2bd0f6f2
tree0e60eb9aa096b7b03a908aa022f1e4c4b38b2c2d
parente353389d24da48c708f72379f87e9b518baac521
Fix ALTER TABLE...SET STATS error message for included columns

The existing error message was complaining that the column is not an
expression, which is not correct.  Introduce a suitable wording
variation and a test.

Co-authored-by: Yugo Nagata
Discussion: https://postgr.es/m/20180628182803.e4632d5a[email protected]
Reviewed-by: Álvaro Herrera
src/backend/commands/tablecmds.c
src/test/regress/expected/index_including.out
src/test/regress/sql/index_including.sql