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: JIT tuple deforming in LLVM JIT provider.
Date: Mon, 26 Mar 2018 20:18:01 +0000
Message-ID: <E1f0YZ7-0005ut-LQ@gemulon.postgresql.org> (raw)

JIT tuple deforming in LLVM JIT provider.

Performing JIT compilation for deforming gains performance benefits
over unJITed deforming from compile-time knowledge of the tuple
descriptor. Fixed column widths, NOT NULLness, etc can be taken
advantage of.

Right now the JITed deforming is only used when deforming tuples as
part of expression evaluation (and obviously only if the descriptor is
known). It's likely to be beneficial in other cases, too.

By default tuple deforming is JITed whenever an expression is JIT
compiled. There's a separate boolean GUC controlling it, but that's
expected to be primarily useful for development and benchmarking.

Docs will follow in a later commit containing docs for the whole JIT
feature.

Author: Andres Freund
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/32af96b2b118cd204ca809d7c48c7f8ea7f879cf

Modified Files
--------------
src/backend/access/common/heaptuple.c  |  10 +
src/backend/executor/execExpr.c        |   5 +
src/backend/executor/execTuples.c      |   1 +
src/backend/executor/nodeForeignscan.c |   6 +-
src/backend/jit/jit.c                  |   1 +
src/backend/jit/llvm/Makefile          |   2 +-
src/backend/jit/llvm/llvmjit.c         |   2 +
src/backend/jit/llvm/llvmjit_deform.c  | 729 +++++++++++++++++++++++++++++++++
src/backend/jit/llvm/llvmjit_expr.c    |  45 +-
src/backend/jit/llvm/llvmjit_types.c   |   1 +
src/backend/optimizer/plan/planner.c   |   2 +
src/backend/utils/misc/guc.c           |  11 +
src/include/access/htup_details.h      |   1 +
src/include/executor/execExpr.h        |   1 +
src/include/jit/jit.h                  |   2 +
src/include/jit/llvmjit.h              |   3 +
src/include/nodes/execnodes.h          |   8 +
17 files changed, 827 insertions(+), 3 deletions(-)



Message-ID: <E1f0YZ7-0005ut-LQ@gemulon.postgresql.org>
Permalink:  ../E1f0YZ7-0005ut-LQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f0YZ7-0005ut-LQ@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: JIT tuple deforming in LLVM JIT provider.
  In-Reply-To: <E1f0YZ7-0005ut-LQ@gemulon.postgresql.org>
  References: <E1f0YZ7-0005ut-LQ@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