PostgreSQL - JSON and JSONB
Why does this query fail?
Assuming
SELECT jsonb_set(data, '{location,city}', '"New York"') FROM table;Assuming
data has no key location.