On Thu, Oct 15, 2026 at 9:12 AM Matemática A3K <[email protected]>
wrote:
> and something like "index_start to index_end" ("[2 to 3, 5 to 6]") seems
> unlikely.
>
The row in question is technically correct.
SELECT jsonb_path_query_array(
'[10,20,30,40,50,60]'::jsonb,
'$[1 to 2, 4 to 5]'
) AS result;
[20, 30, 50, 60]
I'll agree the entire section could stand to use examples, like the ones
preceding it.
I'd probably also do:
[{index | start_index to end_index}}, ...]
Instead of leaving the inner syntax available only in the prose.
Or, taking the first and prior rows as multi-syntax examples:
[index, ...]
[start_index to end_index, ...]
And tweak the description accordingly.
David J.