8.14.5 jsonb subscripting

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема 8.14.5 jsonb subscripting
Дата
Msg-id 171265510066.682.7886492568248508496@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: 8.14.5 jsonb subscripting  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-docs
The following documentation comment has been logged on the website:

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

Using subscripts with square brackets is not supported, one must use -> or
#> operators
The given examples result in error:

SELECT ('{"a": 1}'::jsonb)['a'];

-- Extract nested object value by key path
SELECT ('{"a": {"b": {"c": 1}}}'::jsonb)['a']['b']['c'];

-- Extract array element by index
SELECT ('[1, "2", null]'::jsonb)[1];

В списке pgsql-docs по дате отправления:

Предыдущее
От: Jan Behrens
Дата:
Сообщение: Re: Non-blocking synchronization in libpq using pipeline mode
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: 8.14.5 jsonb subscripting