Split CREATE STATISTICS error reasons out into errdetails
John Naylor <john.naylor@postgresql.org>
Author:
John Naylor <john.naylor@postgresql.org>
Date: 2026-04-07T04:37:48Z
Releases:
19 (unreleased)
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@sraoss.co.jp> Suggested-by: John Naylor <johncnaylorls@gmail.com> Discussion: https://postgr.es/m/CANWCAZaZeX0omWNh_ZbD_JVujzYQdRUW8UZOQ4dWh9Sg7OcAow@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/statscmds.c | modified | +11 −6 |
| src/test/regress/expected/stats_ext.out | modified | +2 −1 |
Discussion
- Adjust error message for CREATE STATISTICS to account for expressions 16 messages · 2026-03-24 → 2026-04-07