From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Collect JIT instrumentation from workers. |
Date: | 2018-09-25 20:16:10 |
Message-ID: | E1g4tkg-0005nv-Nm@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Collect JIT instrumentation from workers.
Previously, when using parallel query, EXPLAIN (ANALYZE)'s JIT
compilation timings did not include the overhead from doing so on the
workers. Fix that.
We do so by simply aggregating the cost of doing JIT compilation on
workers and the leader together. Arguably that's not quite accurate,
because the total time spend doing so is spent in parallel - but it's
hard to do much better. For additional detail, when VERBOSE is
specified, the stats for workers are displayed separately.
Author: Amit Khandekar and Andres Freund
Discussion: https://postgr.es/m/CAJ3gD9eLrz51RK_gTkod+71iDcjpB_N8eC6vU2AW-VicsAERpQ@mail.gmail.com
Backpatch: 11-
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/33001fd7a7072d483272115a9376478fdc007fb9
Modified Files
--------------
contrib/auto_explain/auto_explain.c | 6 +--
src/backend/commands/explain.c | 87 +++++++++++++++++++++++++------------
src/backend/executor/execMain.c | 16 +++++++
src/backend/executor/execParallel.c | 82 ++++++++++++++++++++++++++++++++++
src/backend/jit/jit.c | 11 +++++
src/backend/jit/llvm/llvmjit.c | 14 +++---
src/backend/jit/llvm/llvmjit_expr.c | 2 +-
src/include/commands/explain.h | 3 +-
src/include/executor/execParallel.h | 1 +
src/include/jit/jit.h | 27 +++++++++---
src/include/nodes/execnodes.h | 8 ++++
11 files changed, 211 insertions(+), 46 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-09-25 20:16:12 | pgsql: Collect JIT instrumentation from workers. |
Previous Message | Tom Lane | 2018-09-25 17:24:06 | pgsql: Make some fixes to allow building Postgres on macOS 10.14 ("Moja |