| From: | Vik Fearing <vik(at)postgresfriends(dot)org> |
|---|---|
| To: | Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com> |
| Cc: | Amul Sul <sulamul(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Kirill Reshke <reshkekirill(at)gmail(dot)com>, Isaac Morland <isaac(dot)morland(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions |
| Date: | 2026-04-02 16:03:28 |
| Message-ID: | 4e00626a-66ca-45af-9866-30d022523b37@postgresfriends.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 31/03/2026 22:02, Corey Huinker wrote:
>
>
> On Tue, Mar 31, 2026 at 10:48 AM jian he <jian(dot)universality(at)gmail(dot)com>
> wrote:
>
> Hi.
> I've incorporated the changes you sent me off-list.
> The attached v1 no-cfbot is your proposed change.
> I also did some minor comments adjustments.
>
>
> The remaining patches continue to work for me. I hope we can get all
> of this into 19, but if we can't I think it would be ok to limit
> src/dest type combinations to those that can be handled by
> CoerceViaIO, at least for 19. I think the vast majority of the usage
> of this function will be mass ETLs where data is first loaded into a
> table of all text.
Did you see on Discord that I am submitting a bug fix for this paper? I
originally took the syntax from json but it special-cases NULL and can't
handle <empty specification>, so I want to remove `NULL ON CONVERSION
ERROR` and switch the DEFAULT clause to <implicitly typed value
specification>.
I am attaching it here in case you missed it.
--
Vik Fearing
| Attachment | Content-Type | Size |
|---|---|---|
| bma014-cast-error-default--draft-01.pdf | application/pdf | 51.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ashutosh Bapat | 2026-04-02 16:13:49 | Re: Shared hash table allocations |
| Previous Message | Nathan Bossart | 2026-04-02 15:53:24 | Re: vectorized CRC on ARM64 |