]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:48:03 +0000 (11:48 +0200)
commitf9b41f3e1ecd0bd8aab673bc49f4222f683b9c24
treebf9b5c9bc68fdc50db472efc5210aa34ab1eff93
parent755f01ad743c09a5fcaf04df1c0e465bb48b85ed
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