Re: Casts from jsonb to other types should cope with json null

Поиск
Список
Период
Сортировка
От Maxim Orlov
Тема Re: Casts from jsonb to other types should cope with json null
Дата
Msg-id CACG=ezbQLqU9PvHrJHbOf=28sQHhTyMRy_EWF2HE4hX_aoGtSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Casts from jsonb to other types should cope with json null  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Casts from jsonb to other types should cope with json null
Список pgsql-hackers


On Sat, 3 Aug 2024 at 23:10, Tom Lane <tgl@sss.pgh.pa.us> wrote:
It strikes me that there's also a question of whether json::text
should translate 'null' like this.  I'm inclined to think not,
since json is in some sense a domain over text, but it's certainly
debatable.
I tend to agree with you here about the semantics of such casts. But consistency and "predictability" of 
behaviour for the casts are a bit more important in my view. At least, based on my experience. So, I'm 
for 0002 patch.
 
--
Best regards,
Maxim Orlov.

В списке pgsql-hackers по дате отправления: