From: Andrus <kobruleht2@hot.ee>
To: pgsql-general@postgresql.org
Subject: Turn jit off for slow subquery in Postgres 12
Date: Tue, 16 Feb 2021 08:48:35 +0200
Message-ID: <c18b027c-4629-58a5-a499-64dc8a233e8f@hot.ee> (raw)
Hi!
Last year I posted testcase [1] which shows that using jit makes execution
magnitude slower ( 2.5s vs 0.4 sec) in typical shopping cart application
product search in Postgres 12.
There are also other reports on this [2,3].
I tried to turn jit off for subquery using
select ... from
(
set jit to off;
select ... from cartdata, ... where ....
set jit to on
)
But this cause syntax error.
How to turn off jit for specific subquery in Postgres 12 ?
Subquery is generated by EF Core and splitting it to multiple statements
is not possible.
Postgres upgrade is not planned.
Andrus.
[1]
https://www.postgresql.org/message-id/A2E2572094D4434CAEB57C80085B22C7@dell2
[2]
https://www.postgresql.org/message-id/CAHOFxGo5xJt02RmwAWrtv2K0jcqqxG-cDiR8FQbvb0WxdKhcgw%40mail.gma...
[3]https://www.postgresql.org/message-id/629715.1595630222%40sss.pgh.pa.us
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kobruleht2@hot.ee
Subject: Re: Turn jit off for slow subquery in Postgres 12
In-Reply-To: <c18b027c-4629-58a5-a499-64dc8a233e8f@hot.ee>
References: <c18b027c-4629-58a5-a499-64dc8a233e8f@hot.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox