Re: jsonb merge with update ... on conflict do

From: Eugene Pazhitnov <pazhitnov(at)gmail(dot)com>
To: Sergei Kornilov <sk(at)zsrv(dot)org>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: jsonb merge with update ... on conflict do
Date: 2021-06-01 12:18:49
Message-ID: CAGfKbEzELo5rE7tTTvj4gJC6Y+ZaE8c=kXWJbR9cXCDpV2kksg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks a lot, Sergei! My fault. Works like a charm now.

вт, 1 июн. 2021 г. в 14:58, Sergei Kornilov <sk(at)zsrv(dot)org>:

> Hello
> You meant
>
> ... do update set price=test.price || '{"CA":20}'::jsonb;
>
> ? Or possibly
>
> ... do update set price=test.price || EXCLUDED.price;
>
> ?
> In other words, why did you expect the result {"CA":20,"RU":10} ?
>
> regards, Sergei
>

--
Evgeny Pazhitnov

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Godfrin, Philippe E 2021-06-01 12:47:19 CREATE SERVER makes 2 entries in the dictionary
Previous Message Sergei Kornilov 2021-06-01 11:58:04 Re: jsonb merge with update ... on conflict do