Hi all, I found the following error when playing with jsonb and json_build_object: =# with jsonb_data as (select * from jsonb_each('{"aa" : "po"}'::jsonb)) select json_build_object(key,value) from jsonb_data; ERROR: XX000: cache lookup failed for type 2147483650 LOCATION: lookup_type_cache, typcache.c:193
I would have expected the result to be the same as in the case of json: =# with json_data as (select * from json_each('{"aa" : "po"}'::json)) select json_build_object(key,value) from json_data; json_build_object ------------------- {"aa" : "po"} (1 row) Regards, -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers