When I try to update like below, I received invalid input syntax for type json. Expected "," or "}".
The record's content of problem is {'open': ','}.
If the record's content is {'open': ',abc'}, I can update correctly like {'open': 'abc'}.
update hoge SET extra =
REPLACE(
extra::TEXT,
extra->>'open',
regexp_replace(extra->>'open', '^,', '')
)::JSONB
Any Idea?