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_17_STABLE

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

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(-)

Reply via email to