Re: jsonb array accessors - Mailing list pgsql-docs

From David G. Johnston
Subject Re: jsonb array accessors
Date
Msg-id CAKFQuwYh9Xu2sVf4X6K-bAGj0ZvGqdbwgCG6DCQ5X+Gj4YjE5A@mail.gmail.com
Whole thread Raw
In response to jsonb array accessors  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Saturday, November 4, 2023, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/datatype-json.html
Description:

https://dbfiddle.uk/Dr-c-nqL

multiple subscripts for jsonb arrays do not behave as described on Table
8.25 in Postgres 16 docs / 8.14.7 jsonpath

That table describes jsonpath operations.  Your example doesn’t involve jsonpath at all; it uses an SQL-scoped operation/syntax.

You will need to use an operator or function that accepts jsonpath as its argument if you want to avail yourself of jsonpath functionality.

David J.

pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: jsonb array accessors
Next
From: Erki Eessaar
Date:
Subject: An inconsistency in the documentation about full text search