pgsql: CREATE STATISTICS: improve misleading error message - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: CREATE STATISTICS: improve misleading error message
Date
Msg-id E1uy6Er-000ocC-3C@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_16_STABLE

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

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


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove workarounds against repeat typedefs
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Expand virtual generated columns in constraint expressions