CREATE STATISTICS: improve misleading error message
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 09:38:58 +0000 (11:38 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 09:43:34 +0000 (11:43 +0200)
commit9ec0b29976b6d73cc08880842caa0db286e46bd4
tree83032339a1e5c557f7048caa5c1c1bb9b1213f52
parent4bd91912987d794c48dd4ba4c337906bd23759be
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 <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CACJufxEZ48toGH0Em_6vdsT57Y3L8pLF=DZCQ_gCii6=C3MeXw@mail.gmail.com
src/backend/tcop/utility.c
src/test/regress/expected/stats_ext.out