Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling

Поиск
Список
Период
Сортировка
Искать
От
Alexander Korotkov
Тема
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling
Дата
Msg-id
CAPpHfdtweZwYrf0uTXRWiFRW6_L0eAWMBQFH9fM-SCbwqikJUA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling Alexander Korotkov <aekorotkov@gmail.com>
Re: Bug in jsonb_path_exists (maybe _match) one-element scalar/variable jsonpath handling "David G. Johnston" <david.g.johnston@gmail.com>
On Fri, Dec 2, 2022 at 3:18 PM Alexander Korotkov  wrote:
> Draft patch fixing the issue is attached.  Let me know what you think
> about this.

Revised patch is attached, wrong pfree() is fixed.  I was intended to
backpatch it.  But the behavior change makes me uneasy.

select * from jsonb_path_query('{"a": 10}', '$ ? (@.a < $value)');

Currently, this query generates an error because of missing "value"
variable.  The patch suppress this error.  I'm not sure this error
should be suppressed.  Especially, I'm sure this should be
backpatched.

Should we fix only existence checking behaviour and let other cases
throw an error?  Thoughts?

------
Regards,
Alexander Korotkov
В списке pgsql-bugs по дате отправления
От: Thomas Munro
Дата:
От: Jeff Davis
Дата:
FAQ