Re: Query is over 2x slower with jit=on
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Amit Khandekar <amitdkhan.pg@gmail.com>, Andreas Joseph Krogh <andreas@visena.com>, Robert Haas <robertmhaas@gmail.com>, Alvaro Herrera <alvherre@2ndquadrant.com>, "Jonathan S. Katz" <jkatz@postgresql.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-09-19T22:40:47Z
Lists: pgsql-hackers
Hi, On 2018-09-17 17:50:15 -0400, Tom Lane wrote: > Amit Khandekar <amitdkhan.pg@gmail.com> writes: > > On 11 September 2018 at 14:50, Amit Khandekar <amitdkhan.pg@gmail.com> wrote: > >> On 10 September 2018 at 21:39, Andres Freund <andres@anarazel.de> wrote: > >>> On 2018-09-10 15:42:55 +0530, Amit Khandekar wrote: > >>>> I think we better show per-worker jit info also. > > Just to throw a contrarian opinion into this: I find the current EXPLAIN > output for JIT to be insanely verbose already. Hm, it'd have been nice to get that feedback a little bit earlier, I did inquire... Currently: JIT: Functions: 2 Generation Time: 0.680 ms Inlining: true Inlining Time: 7.591 ms Optimization: true Optimization Time: 20.522 ms Emission Time: 14.607 ms How about making that: JIT: Functions: 2 Options: Inlining, Optimization Times (Total, Generation, Inlining, Optimization, Emission): 43.4 ms, 0.680 ms, 7.591 ms, 20.522 ms, 14.607 ms or something similar? Greetings, Andres Freund
Commits
-
Fix issues around EXPLAIN with JIT.
- e97c4d967ba5 11.0 landed
- c03c1449c092 12.0 landed
-
Collect JIT instrumentation from workers.
- e63441c3f5ca 11.0 landed
- 33001fd7a707 12.0 landed
-
Make EXPLAIN output for JIT compilation more dense.
- 6859bd2632d8 11.0 landed
- 52050ad8ebec 12.0 landed
-
Save/restore SPI's global variables in SPI_connect() and SPI_finish().
- 825f10fbda7a 11.0 cited
-
Rationalize handling of single and double quotes in bootstrap data.
- 55d26ff638f0 11.0 cited