pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: CREATE STATISTICS: improve misleading error message
Date: Fri, 29 Aug 2025 12:44:26 +0000
Message-ID: <E1urySv-002E92-1N@gemulon.postgresql.org> (raw)

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

Branch
------
master

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

Modified Files
--------------
src/backend/tcop/utility.c              |  3 ++-
src/test/regress/expected/stats_ext.out | 26 ++++++++++++++++++++++++++
src/test/regress/sql/stats_ext.sql      | 12 ++++++++++++
3 files changed, 40 insertions(+), 1 deletion(-)



view thread (12+ messages)  latest in thread

Message-ID: <E1urySv-002E92-1N@gemulon.postgresql.org>
Permalink:  ../E1urySv-002E92-1N@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1urySv-002E92-1N@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: CREATE STATISTICS: improve misleading error message
  In-Reply-To: <E1urySv-002E92-1N@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox