| From: | Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Adjust error message for CREATE STATISTICS to account for expressions |
| Date: | 2026-03-24 11:34:30 |
| Message-ID: | 20260324203430.411331c59ca462457ec0aa8b@sraoss.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I've attached a patch to adjust the error message for CREATE STATISTICS
to account for expressions.
Previously, when attempting to create extended statistics on a single column,
the following error is raised.
ERROR: extended statistics require at least 2 columns
However, this message assumed only columns. In reality, an expression on a
single column is also allowed, so two columns are not necessarily required.
Thgis patch updates the message to:
ERROR: extended statistics require at least 2 columns or an expression
Regards,
Yugo Nagata
--
Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
| Attachment | Content-Type | Size |
|---|---|---|
| Adjust_error_message_for_CREATE_STATISTICS.patch | text/x-diff | 630 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dean Rasheed | 2026-03-24 11:43:47 | Re: Allow to collect statistics on virtual generated columns |
| Previous Message | Xuneng Zhou | 2026-03-24 11:17:24 | Re: log_checkpoints: count WAL segment creations from all processes |