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: Basic JIT provider and error handling infrastructure.
Date: Thu, 22 Mar 2018 02:30:44 +0000
Message-ID: <E1eyq04-0005CM-3b@gemulon.postgresql.org> (raw)

Basic JIT provider and error handling infrastructure.

This commit introduces:

1) JIT provider abstraction, which allows JIT functionality to be
   implemented in separate shared libraries. That's desirable because
   it allows to install JIT support as a separate package, and because
   it allows experimentation with different forms of JITing.
2) JITContexts which can be, using functions introduced in follow up
   commits, used to emit JITed functions, and have them be cleaned up
   on error.
3) The outline of a LLVM JIT provider, which will be fleshed out in
   subsequent commits.

Documentation for GUCs added, and for JIT in general, will be added in
later commits.

Author: Andres Freund, with architectural input from Jeff Davis
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/432bb9e04da4d4a1799b1fe7c723b975cb070c43

Modified Files
--------------
src/Makefile                                  |   4 +
src/backend/Makefile                          |   3 +-
src/backend/jit/Makefile                      |  22 ++++
src/backend/jit/jit.c                         | 156 ++++++++++++++++++++++++++
src/backend/jit/llvm/Makefile                 |  55 +++++++++
src/backend/jit/llvm/llvmjit.c                | 113 +++++++++++++++++++
src/backend/jit/llvm/llvmjit_error.cpp        | 141 +++++++++++++++++++++++
src/backend/tcop/postgres.c                   |   3 +
src/backend/utils/misc/guc.c                  |  22 ++++
src/backend/utils/misc/postgresql.conf.sample |   2 +
src/backend/utils/resowner/resowner.c         |  48 ++++++++
src/include/catalog/catversion.h              |   2 +-
src/include/catalog/pg_proc.h                 |   2 +
src/include/jit/jit.h                         |  46 ++++++++
src/include/jit/llvmjit.h                     |  51 +++++++++
src/include/utils/resowner_private.h          |   7 ++
src/tools/pgindent/exclude_file_patterns      |   1 +
src/tools/pgindent/typedefs.list              |   3 +
18 files changed, 679 insertions(+), 2 deletions(-)



Message-ID: <E1eyq04-0005CM-3b@gemulon.postgresql.org>
Permalink:  ../E1eyq04-0005CM-3b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eyq04-0005CM-3b@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: Basic JIT provider and error handling infrastructure.
  In-Reply-To: <E1eyq04-0005CM-3b@gemulon.postgresql.org>
  References: <E1eyq04-0005CM-3b@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