update field in jsonb - Mailing list pgsql-general

From support-tiger
Subject update field in jsonb
Date
Msg-id 9a1c3dd0-39f0-7da2-61b6-58621a89a288@tigernassau.com
Whole thread Raw
Responses Re: update field in jsonb
Re: update field in jsonb
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: backends stuck in "startup"
Next
From: "Ivan E. Panchenko"
Date:
Subject: Re: update field in jsonb