Postgresql – Can I use jsonb_set with the new value (3rd argument) coming from a select statement?
I have a table with a jsonb column and I want to migrate every record to a new schema. Old schema: {"foo": "bar"} New schema: {"foo": {"value": "bar"} The bar value varies by row and I want to preserve that…