CREATE STATISTICS: improve misleading error message
authorÁlvaro Herrera <[email protected]>
Fri, 29 Aug 2025 12:43:47 +0000 (14:43 +0200)
committerÁlvaro Herrera <[email protected]>
Fri, 29 Aug 2025 12:43:47 +0000 (14:43 +0200)
commitb830f9d67463f770e7c92ac989112c90c1f28dbf
treefa1f312a5b66f33ab45c66851ec18f18cab7e9d7
parent4a593043eee9b399ff6c1fc40862f820289786c1
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=C3MeXw@mail.gmail.com
src/backend/tcop/utility.c
src/test/regress/expected/stats_ext.out
src/test/regress/sql/stats_ext.sql