Re: update field in jsonb

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема Re: update field in jsonb
Дата
Msg-id CAF4Au4zDmx5Dx1jdTb8nBFZMLCsCMd7RqMt_m-F7kyXL-ywBAg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: update field in jsonb  (support-tiger <support@tigernassau.com>)
Ответы Re: update field in jsonb  ("Sven R. Kunze" <srkunze@mail.de>)
Список pgsql-general
On Fri, Nov 24, 2017 at 3:46 AM, support-tiger <support@tigernassau.com> wrote:
> Oleg,
>
> hey, thanks so much - if you are in USA visiting Yellowstone Natl Park
> contact me and the beer is on me (maybe a Wyoming steak too!)

Seriously ?

btw, in PG 11 we expect subscription index    update test set data[age]= '30';



>
>
>
> On 11/22/2017 11:27 PM, Oleg Bartunov wrote:
>>
>> On Thu, Nov 23, 2017 at 4:45 AM, support-tiger <support@tigernassau.com>
>> wrote:
>>>
>>> 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
>>
>>
>> update test set data = jsonb_set(data, '{age}', '30'::jsonb);
>>
>>>
>>> --
>>> Support Dept
>>> Tiger Nassau, Inc.
>>> www.tigernassau.com
>>> 406-624-9310
>>>
>>>
>>>
>>
>
> --
> Support Dept
> Tiger Nassau, Inc.
> www.tigernassau.com
> 406-624-9310
>
>
>


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

Предыдущее
От: Nikita
Дата:
Сообщение: Re: pg_total_relation_size accuracy guarantee
Следующее
От: milist ujang
Дата:
Сообщение: Re: [GENERAL] BDR, near xid wraparound, a lot of files in pg_subtrans directory