CREATE STATISTICS: improve misleading error message
Álvaro Herrera <alvherre@kurilemu.de>
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 <alvherre@kurilemu.de> Reported-by: jian he <jian.universality@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Backpatch-through: 14 Discussion: https://postgr.es/m/CACJufxEZ48toGH0Em_6vdsT57Y3L8pLF=DZCQ_gCii6=C3MeXw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/utility.c | modified | +2 −1 |
| src/test/regress/expected/stats_ext.out | modified | +26 −0 |
| src/test/regress/sql/stats_ext.sql | modified | +12 −0 |
Discussion
- misleading error message in ProcessUtilitySlow T_CreateStatsStmt 33 messages · 2025-08-21 → 2026-05-15