diff options
| author | Andres Freund | 2018-03-20 09:20:46 +0000 |
|---|---|---|
| committer | Andres Freund | 2018-03-22 21:45:59 +0000 |
| commit | 2a0faed9d7028e3830998bd6ca900be651274e27 (patch) | |
| tree | 0ab54ad8ac5c5d97d7a4dcee4c2d99c7959af2f6 /src/tools/pgindent | |
| parent | 7ced1d1247286399df53823eb76cacaf6d7fdb22 (diff) | |
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
Diffstat (limited to 'src/tools/pgindent')
| -rw-r--r-- | src/tools/pgindent/typedefs.list | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index 1ae5368367a..17bf55c1f55 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -363,6 +363,7 @@ CommitTimestampShared CommonEntry CommonTableExpr CompareScalarsContext +CompiledExprState CompositeIOData CompositeTypeStmt CompoundAffixFlag |
