=?UTF-8?Q?Piotr_W=C5=82odarczyk?= <piotrwlodarczyk89@gmail.com> writes:
> I don't know what is EvalPlanQual but conditions you wrote about are met.
OK, then I'm pretty confident that patch will fix your problem.
It'll be in 12.2 which is due out in two weeks.
regards, tom lane