Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Vik Fearing <vik(at)postgresfriends(dot)org>
Cc: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, 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-03 03:14:57
Message-ID: CACJufxFpyVfbUfWWTA4osVSy7fhNC4H+LzxRLFS65Z+9na4thg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Apr 3, 2026 at 12:03 AM Vik Fearing <vik(at)postgresfriends(dot)org> wrote:
>
> 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

The attached v29 removed `NULL ON CONVERSION ERROR`.
Other than that, everything is the same as v28.

--
jian
https://www.enterprisedb.com/

Attachment Content-Type Size
v29-0001-error-safe-for-casting-text-to-other-types-per-pg_cast.patch text/x-patch 9.2 KB
v29-0002-CAST-expr-AS-newtype-DEFAULT-expr-ON-CONVERSION-ERROR.patch text/x-patch 144.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2026-04-03 03:18:56 RE: [WIP] Pipelined Recovery
Previous Message Thomas Munro 2026-04-03 03:06:35 Re: LLVM 22