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 <[email protected]>
Reported-by: jian he <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Backpatch-through: 14
Discussion: 
https://postgr.es/m/CACJufxEZ48toGH0Em_6vdsT57Y3L8pLF=DZCQ_gCii6=c3m...@mail.gmail.com

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d84a6c3dad1f867275ed7547c8ae6e120292f94c

Modified Files
--------------
src/backend/tcop/utility.c              |  3 ++-
src/test/regress/expected/stats_ext.out | 23 +++++++++++++++++++++++
src/test/regress/sql/stats_ext.sql      | 11 +++++++++++
3 files changed, 36 insertions(+), 1 deletion(-)

Reply via email to