Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Álvaro Herrera <alvherre@kurilemu.de>, jian he <jian.universality@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Kirill Reshke <reshkekirill@gmail.com>
Date: 2025-09-15T10:16:39Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. CREATE STATISTICS: improve misleading error message

  2. Glossary: improve definition of "relation"

  3. Extended statistics on expressions

On 12.09.25 15:49, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> writes:
>> I propose the attached patch to fix this.  I think this restores the
>> original meaning better.
> 
> I'm okay with this wording change, but I would stay with
> ERRCODE_FEATURE_NOT_SUPPORTED rather than calling this
> a "syntax error".  It's not a syntax error IMV, but a
> potential feature that we have deliberately left syntax
> space for, even though we don't yet have ideas about
> a workable implementation.

Ok, done that way.