diff options
author | Andres Freund <andres@anarazel.de> | 2018-03-26 12:57:19 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-03-26 12:57:19 -0700 |
commit | 32af96b2b118cd204ca809d7c48c7f8ea7f879cf (patch) | |
tree | d9a09cc42afb193293a0b65cfa080d676763d776 /src/include/executor | |
parent | 64f85894ad2730fb1449a8e81dd8026604e9a546 (diff) |
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
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/execExpr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/executor/execExpr.h b/src/include/executor/execExpr.h index 6fc4ed640b2..f4617a28fa2 100644 --- a/src/include/executor/execExpr.h +++ b/src/include/executor/execExpr.h @@ -262,6 +262,7 @@ typedef struct ExprEvalStep { /* attribute number up to which to fetch (inclusive) */ int last_var; + TupleDesc known_desc; } fetch; /* for EEOP_INNER/OUTER/SCAN_[SYS]VAR[_FIRST] */ |