pgsql: Split CREATE STATISTICS error reasons out into errdetails

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Split CREATE STATISTICS error reasons out into errdetails
Date: 2026-04-07 04:38:49
Message-ID: E1w9yDA-003Kzi-1F@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Split CREATE STATISTICS error reasons out into errdetails

Some errmsgs in statscmds.c were phrased as "...cannot be used
because...". Put the reasons into errdetails. While at it, switch
from passive voice to "cannot create..." for the errmsg.

Author: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
Suggested-by: John Naylor <johncnaylorls(at)gmail(dot)com>
Discussion: https://postgr.es/m/CANWCAZaZeX0omWNh_ZbD_JVujzYQdRUW8UZOQ4dWh9Sg7OcAow@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/51098839cfb40dc496bb48fe4ea14d19170099ac

Modified Files
--------------
src/backend/commands/statscmds.c | 17 +++++++++++------
src/test/regress/expected/stats_ext.out | 3 ++-
2 files changed, 13 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-04-07 06:08:51 Re: pgsql: Reduce log level of some logical decoding messages from LOG to D
Previous Message Michael Paquier 2026-04-07 04:19:40 pgsql: Fix injection point detach timing problem in TAP test for lock s