add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
jsonb_path_query
[{"foo": 1}, {"foo": 2}]
jsonb_path_query_array
[[{"foo": 1}, {"foo": 2}]]
ERROR:  set-returning functions must appear at top level of FROM
LINE 3:     jsonb_path_query(
            ^

jsn obj
[{"foo": 1}, {"foo": 1}] {"foo": 1}
[{"foo": 1}, {"foo": 1}] {"foo": 1}
jsonb_path_query
1
2
jsonb_path_query ordinality
1 1
3 2
2 3
jsonb_path_query ordinality
1 1
3 2
4 3
ERROR:  function json_path_query(json, jsonpath) does not exist
LINE 2: from json_path_query('[{"foo":1},{"foo":2,"bar":3}]'::json,'...
             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.