pgsql: Document behavior of the .** jsonpath accessor in the lax mode

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Document behavior of the .** jsonpath accessor in the lax mode
Дата
Msg-id E1l5StN-0005m3-Uv@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Document behavior of the .** jsonpath accessor in the lax mode

When the .** jsonpath accessor handles the array, it selects both array and
each of its elements.  When using lax mode, subsequent accessors automatically
unwrap arrays.  So, the content of each array element may be selected twice.

Even though this behavior is counterintuitive, it's correct because everything
works as designed.  This commit documents it.

Backpatch to 12 where the jsonpath language was introduced.

Reported-by: Thomas Kellerer
Bug: #16828
Discussion: https://postgr.es/m/16828-2b0229babfad2d8c%40postgresql.org
Discussion: https://postgr.es/m/CAPpHfdtS-nNidT%3DEqZbAYOPcnNOWh_sd6skVdu2CAQUGdvpT8Q%40mail.gmail.com
Author: Alexandex Korotkov, revised by Tom Lane
Reviewed-by: Alvaro Herrera, Thomas Kellerer, Tom Lane
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd6366129b1b97769c5293da1ec7f112cc68a444

Modified Files
--------------
doc/src/sgml/func.sgml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Document behavior of the .** jsonpath accessor in the lax mode
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: improve cross-references for SET/SHOW.