| From: | myzhen <zhenmingyang(at)yeah(dot)net> |
|---|---|
| To: | "zhibin wang" <killerwzb(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re:Re: Fix incorrect column name in error message for range partition bound check |
| Date: | 2026-01-07 09:50:28 |
| Message-ID: | 1f1340f1.1410.19b97dd6853.Coremail.zhenmingyang@yeah.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi zhibin,
By the way, based on the context, once a column is set to MINVALUE or MAXVALUE, the values of the remaining columns must be the same. However, I noticed that 'validateInfiniteBounds' is only invoked after all boundary value transformations are completed. Perhaps we can perform the validity check for infinite boundary values earlier. In this way, we can not only avoid this error but also achieve timely "short-circuit" — because any non-MINVALUE transformation performed after MINVALUE is essentially meaningless overhead. ideas?
Thanks, I think it makes some sense, so I tried to make the second version.
| Attachment | Content-Type | Size |
|---|---|---|
| v2-Fix-incorrect-column-name-in-error-message-for-range.patch | application/octet-stream | 4.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniil Davydov | 2026-01-07 09:51:06 | Re: POC: Parallel processing of indexes in autovacuum |
| Previous Message | Amit Kapila | 2026-01-07 09:35:04 | Re: Simplify code building the LR conflict messages |