CREATE STATISTICS: improve misleading error message

The previous change (commit f225473cbae) was still not on target,
because it talked about relation kinds, which are not what is being
checked here.  Provide a more accurate message.

Reviewed-by: Tom Lane <t...@sss.pgh.pa.us>
Discussion: 
https://postgr.es/m/CACJufxEZ48toGH0Em_6vdsT57Y3L8pLF=DZCQ_gCii6=c3m...@mail.gmail.com

Branch
------
REL_17_STABLE

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

Modified Files
--------------
src/backend/tcop/utility.c              |  3 +--
src/test/regress/expected/stats_ext.out | 21 +++++++--------------
2 files changed, 8 insertions(+), 16 deletions(-)

Reply via email to