An incompatible issue at error message level is found during test: create table jb(a jsonb);insert into jb select '{"a": "a"}'::jsonb;select (a->'a')::int4 from jb;master: ERROR: cannot cast jsonb string to type integerpatch: ERROR: cannot cast jsonb string to type numericThat's mainly because we first extract the field to numeric andthen cast it to int4 and the error raised at the first step and itdoesn't know the final type. One way to fix it is adding a 2ndargument for jsonb_finish_numeric for the real type, butit looks weird and more suggestions on this would be good.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных