Fix ALTER TABLE...SET STATS error message for included columns

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: cb9db2ab0674381b92559e011738f19e2bd0f6f2
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-07-17T00:00:39Z
Releases: 12.0
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 <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/20180628182803.e4632d5a.nagata@sraoss.co.jp
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>

Files

Discussion