Split CREATE STATISTICS error reasons out into errdetails
Some errmsgs in statscmds.c were phrased as "...cannot be used
because...". Put the reasons into errdetails. While at it, switch
from passive voice to "cannot create..." for the errmsg.
Author: Yugo Nagata <nagata@sraoss.co.jp>
Suggested-by: John Naylor <johncnaylorls@gmail.com>
Discussion: https://postgr.es/m/CANWCAZaZeX0omWNh_ZbD_JVujzYQdRUW8UZOQ4dWh9Sg7OcAow@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/51098839cfb40dc496bb48fe4ea14d19170099ac
Modified Files
--------------
src/backend/commands/statscmds.c | 17 +++++++++++------
src/test/regress/expected/stats_ext.out | 3 ++-
2 files changed, 13 insertions(+), 7 deletions(-)