Re: Jsonpath ** vs lax mode

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Jsonpath ** vs lax mode
Дата
Msg-id ecd54351-f430-72c1-7ada-4adaaf43767e@gmx.net
обсуждение исходный текст
Ответ на Jsonpath ** vs lax mode  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Jsonpath ** vs lax mode  (Alexander Korotkov <aekorotkov@gmail.com>)
Список pgsql-hackers
Alexander Korotkov schrieb am 20.01.2021 um 18:13:
> We have a bug report which says that jsonpath ** operator behaves strangely in the lax mode [1].

That report was from me ;)

Thanks for looking into it.

> At first sight, we may just say that lax mode just sucks and
> counter-intuitive results are expected.  But at the second sight, the
> lax mode is used by default and current behavior may look too
> surprising.

I personally would be fine with the manual stating that the Postgres extension
to the JSONPath processing that allows a recursive lookup using ** requires strict
mode to work properly.

It should probably be documented in chapter 9.16.2 "The SQL/JSON Path Language",
maybe with a little warning in the description of jsonb_path_query** and in
chapter 8.14.16 as well (or at least that's were I would expect such a warning)

Regards
Thomas



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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Jsonpath ** vs lax mode
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Add primary keys to system catalogs