update field in jsonb

Поиск
Список
Период
Сортировка
От support-tiger
Тема update field in jsonb
Дата
Msg-id 9a1c3dd0-39f0-7da2-61b6-58621a89a288@tigernassau.com
обсуждение исходный текст
Ответы Re: update field in jsonb  ("Ivan E. Panchenko" <i.panchenko@postgrespro.ru>)
Re: update field in jsonb  (Oleg Bartunov <obartunov@gmail.com>)
Список pgsql-general
is there a way to update a single field in jsonb without replacing the 
entire json document - couldn't find an example

for example

create table test (id primary key, data jsonb);

insert into test ({"name":"bill", "age":29});
 ?? update test   set data->age = 30


-- 
Support Dept
Tiger Nassau, Inc.
www.tigernassau.com
406-624-9310




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: backends stuck in "startup"
Следующее
От: "Ivan E. Panchenko"
Дата:
Сообщение: Re: update field in jsonb