Re: jsonb_set() strictness considered harmful to data

Поиск
Список
Период
Сортировка
От Maciek Sakrejda
Тема Re: jsonb_set() strictness considered harmful to data
Дата
Msg-id CAOtHd0DK=9bc6uBqt+hmfjkWj-EoUivf6rDZpnK8b2xswnrfcQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: jsonb_set() strictness considered harmful to data  (Stuart McGraw <smcg4191@mtneva.com>)
Список pgsql-general
On Wed, Oct 23, 2019 at 12:01 PM Stuart McGraw <smcg4191@mtneva.com> wrote:
> Why the inconsistency between the array
> type and json type?  Are there any cases other than json where the entire
> compound value is set to NULL as a result of one of its components being
> NULL?

That's a great point. It does look like hstore's delete / minus
operator behaves like that, though:

=# select 'a=>1,b=>2'::hstore - null;
 ?column?
----------

(1 row)



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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Composite type storage overhead
Следующее
От: rob stone
Дата:
Сообщение: Re: jsonb_set() strictness considered harmful to data