Re: update field in jsonb

Поиск
Список
Период
Сортировка
От Sven R. Kunze
Тема Re: update field in jsonb
Дата
Msg-id ec323314-a7e8-e69a-814e-589ddf234717@mail.de
обсуждение исходный текст
Ответ на Re: update field in jsonb  (Oleg Bartunov <obartunov@gmail.com>)
Список pgsql-general
On 24.11.2017 12:19, Oleg Bartunov wrote:
> btw, in PG 11 we expect subscription index
>       update test set data[age]= '30';

Out of curiosity:

Why not?

update test set data->age= 30;

It reminds me more of how to query json in PG

select data->age from test;


Cheer,
Sven


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

Предыдущее
От: Adam Tauno Williams
Дата:
Сообщение: Re: How clear the cache on postgresql?
Следующее
От: nikhil raj
Дата:
Сообщение: A particular database to move to other drive