Re: BUG #19458: OOM killer in jsonb_path_exists_opr (@?) with malformed JSONPath containing non-existent variables

x4mmm@yandex-team.ru

From: Andrey Borodin <x4mmm@yandex-team.ru>
To: Nikita Malakhov <hukutoc@gmail.com>
Cc: Amit Langote <amitlangote09@gmail.com>, Andrey Rachitskiy <pl0h0yp1@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, Nikolay Shaplov <dhyan@nataraj.su>
Date: 2026-05-31T13:33:06Z
Lists: pgsql-bugs

> On 26 May 2026, at 16:17, Nikita Malakhov <hukutoc@gmail.com> wrote:
> 
> of course OOM is very bad behavior and should be corrected

I think the biggest problem is not OOM, but incorrect results for query
SELECT '42'::jsonb @? '$"no_such_var"';


Best regards, Andrey Borodin.



Commits

  1. Report undefined jsonpath variable when no variables are supplied