CREATE STATISTICS: improve misleading error message I think the error message for a different condition was inadvertently copied.
This problem seems to have been introduced by commit a4d75c86bf15. Author: Álvaro Herrera <alvhe...@kurilemu.de> Reported-by: jian he <jian.universal...@gmail.com> Reviewed-by: Tom Lane <t...@sss.pgh.pa.us> Backpatch-through: 14 Discussion: https://postgr.es/m/CACJufxEZ48toGH0Em_6vdsT57Y3L8pLF=DZCQ_gCii6=c3m...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f225473cbae2cca5e1fde376aa4217a6b3a3f770 Modified Files -------------- src/backend/tcop/utility.c | 3 ++- src/test/regress/expected/stats_ext.out | 26 ++++++++++++++++++++++++++ src/test/regress/sql/stats_ext.sql | 12 ++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-)