Re: SQL/JSON features for v15
От | Pavel Stehule |
---|---|
Тема | Re: SQL/JSON features for v15 |
Дата | |
Msg-id | CAFj8pRBUSExT3BB_wHZAtA5sgsTQzCLPM7-j8p6OcXgLNeY3tQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: SQL/JSON features for v15 (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
út 23. 8. 2022 v 21:54 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
Andres Freund <andres@anarazel.de> writes:
> On 2022-08-23 13:28:50 -0400, Tom Lane wrote:
>> I agree with the upthread comments that we only need/want to catch
>> foreseeable incorrect-input errors, and that the way to make that
>> happen is to refactor the related type input functions, and that
>> a lot of the heavy lifting for that has been done already.
> I think it's a good direction to go in. What of the heavy lifting for that has
> been done already? I'd have guessed that the hard part is to add different,
> optional, type input, type coercion signatures, and then converting a lot of
> types to that?
I was assuming that we would only bother to do this for a few core types.
Of those, at least the datetime types were already done for previous
JSON-related features. If we want extensibility, then as Robert said
there's going to have to be work done to create a common API that type
input functions can implement, which seems like a pretty heavy lift.
We could get it done for v16 if we start now, I imagine.
+1
Pavel
regards, tom lane
В списке pgsql-hackers по дате отправления: