Re: jsonb_set() strictness considered harmful to data

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: jsonb_set() strictness considered harmful to data
Дата
Msg-id CAA8=A79Z_zkWbRGGsPn6Sho53H=M=-ajX09Gy++coE_kGmMuEw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonb_set() strictness considered harmful to data  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Ответы Re: jsonb_set() strictness considered harmful to data
Re: jsonb_set() strictness considered harmful to data
Список pgsql-general
On Thu, Nov 28, 2019 at 2:15 PM Andrew Dunstan
<andrew.dunstan@2ndquadrant.com> wrote:
>
>
> On 11/27/19 9:35 PM, Michael Paquier wrote:
> > On Fri, Nov 15, 2019 at 09:45:59PM +0100, Pavel Stehule wrote:
> >> Maybe ERRCODE_NULL_VALUE_NOT_ALLOWED, and "NULL is not allowed",
> >> errdetail - a exception due setting "null_value_treatment" =>
> >> raise_exception
> >> and maybe some errhint - "Maybe you would to use Jsonb NULL - "null"::jsonb"
> >>
> >> I don't know, but in this case, the exception should be verbose. This is
> >> "rich" function with lot of functionality
> > @Andrew: This patch is waiting on input from you for a couple of days
> > now.
> >
>
>


Updated version including docco and better error message.

cheers

andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Mark Zellers
Дата:
Сообщение: RE: UPDATE many records
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: UPDATE many records