Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt
Date: 2025-08-22 10:17:19
Message-ID: CACJufxGpay-qD=btxKZzfZt+W8ysHh2ZMMB01mbs9MV0UGj8Yw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hi.

will
+ if (!IsA(rln, RangeVar))
+ ereport(ERROR,
+ errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("CREATE STATISTICS only
supports regular tables, materialized views, foreign tables, and
partitioned tables"));

solve the problem?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2025-08-22 10:25:38 Re: Remove unneeded cast in heap_xlog_lock.
Previous Message Kirill Reshke 2025-08-22 10:00:17 Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt