Move EEOP_*_SYSVAR evaluation out of line.
Andres Freund <andres@anarazel.de>
Move EEOP_*_SYSVAR evaluation out of line. This mainly de-duplicates code. As evaluating a system variable isn't the hottest path and the current inline implementation ends up calling out to an external function anyway, this is OK from a performance POV. The main motivation for de-duplicating is the upcoming slot abstraction work, after which there's not guaranteed to be a HeapTuple backing the slot. Author: Andres Freund, Amit Khandekar Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execExprInterp.c | modified | +19 −39 |
| src/backend/jit/llvm/llvmjit.c | modified | +2 −2 |
| src/backend/jit/llvm/llvmjit_expr.c | modified | +8 −30 |
| src/backend/jit/llvm/llvmjit_types.c | modified | +1 −1 |
| src/include/executor/execExpr.h | modified | +2 −0 |
| src/include/jit/llvmjit.h | modified | +1 −1 |
Discussion
- Why do pg_upgrade's test use the serial schedule? 10 messages · 2018-11-05 → 2018-11-17