Say I have a table on Postgres with a jsonb column containing {"a": 1, "b": 2}
. Now I'd like to upsert a record with the same id and {"b": 10, "c": 20}
as the jsonb column value.
Consequently, I'd like the jsonb field of the row to contain {"a": 1, "b": 10, "c": 20}
. How can this be achieved?