Either turn it off, or increase jit_above_cost, jit_inline_above_cost, and/or jit_optimize_above_cost.
- Turn jit off for slow subquery in Postgres 12 Andrus
- Re: Turn jit off for slow subquery in Postgres 12 Thomas Kellerer
- Re: Turn jit off for slow subquery in Postgres 12 Michael Lewis