Re: jsonb array accessors

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "yuxx0633(at)umn(dot)edu" <yuxx0633(at)umn(dot)edu>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: jsonb array accessors
Date: 2023-11-04 22:32:25
Message-ID: CAKFQuwYh9Xu2sVf4X6K-bAGj0ZvGqdbwgCG6DCQ5X+Gj4YjE5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Saturday, November 4, 2023, PG Doc comments form <noreply(at)postgresql(dot)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.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2023-11-05 01:14:01 Re: Version 14/15 documentation Section "Alter Default Privileges"
Previous Message Laurenz Albe 2023-11-04 21:12:42 Re: Version 14/15 documentation Section "Alter Default Privileges"