pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Collect JIT instrumentation from workers.
Date: Tue, 25 Sep 2018 20:16:12 +0000
Message-ID: <E1g4tki-0005oH-40@gemulon.postgresql.org> (raw)

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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e63441c3f5ca4a3cdb47f9c7fed9e61dde17b60d

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(-)



view thread (2+ messages)

Message-ID: <E1g4tki-0005oH-40@gemulon.postgresql.org>
Permalink:  ../E1g4tki-0005oH-40@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g4tki-0005oH-40@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Collect JIT instrumentation from workers.
  In-Reply-To: <E1g4tki-0005oH-40@gemulon.postgresql.org>
  References: <E1g4tki-0005oH-40@gemulon.postgresql.org>

* 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