justin.vanwinkle@gmail.com writes:
> select '{"a": {"b":{"c": "foo"}}}'::jsonb #> '{}';
> [ dumps core ]
Hm. It's not immediately obvious to me what this should be defined to do;
should it throw an error, or return the complete LHS object, or perhaps
return a NULL? But the author of get_jsonb_path_all() evidently didn't
consider the case.
Easy enough to fix once we settle on a definition.
regards, tom lane