git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7ced1d1) | patch
Add expression compilation support to LLVM JIT provider.
2018年3月20日 09:20:46 +0000 (02:20 -0700)
2018年3月22日 21:45:59 +0000 (14:45 -0700)
commit 2a0faed9d7028e3830998bd6ca900be651274e27
Add expression compilation support to LLVM JIT provider.

In addition to the interpretation of expressions (which back
evaluation of WHERE clauses, target list projection, aggregates
transition values etc) support compiling expressions to native code,
using the infrastructure added in earlier commits.

To avoid duplicating a lot of code, only support emitting code for
cases that are likely to be performance critical. For expression steps
that aren't deemed that, use the existing interpreter.

The generated code isn't great - some architectural changes are
required to address that. But this already yields a significant
speedup for some analytics queries, particularly with WHERE clauses
filtering a lot, or computing multiple aggregates.

Author: Andres Freund
Tested-By: Thomas Munro
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de

Disable JITing for VALUES() nodes.

VALUES() nodes are only ever executed once. This is primarily helpful
for debugging, when forcing JITing even for cheap queries.

Author: Andres Freund
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
13 files changed:
src/backend/executor/execExpr.c diff | blob | blame | history
src/backend/executor/nodeValuesscan.c diff | blob | blame | history
src/backend/jit/jit.c diff | blob | blame | history
src/backend/jit/llvm/Makefile diff | blob | blame | history
src/backend/jit/llvm/llvmjit.c diff | blob | blame | history
src/backend/jit/llvm/llvmjit_expr.c [new file with mode: 0644] blob
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/utils/fmgr/fmgr.c diff | blob | blame | history
src/backend/utils/misc/guc.c diff | blob | blame | history
src/include/fmgr.h diff | blob | blame | history
src/include/jit/jit.h diff | blob | blame | history
src/include/jit/llvmjit.h diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /