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 <[email protected]> Suggested-by: John Naylor <[email protected]> Discussion: https://postgr.es/m/canwcazazex0omwnh_zbd_jvujzyqdruw8uzoq4dwh9sg7oc...@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(-)
