]> granicus.if.org Git - postgresql/commit
Move EEOP_*_SYSVAR evaluation out of line.
authorAndres Freund <andres@anarazel.de>
Wed, 7 Nov 2018 19:08:45 +0000 (11:08 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 7 Nov 2018 19:08:45 +0000 (11:08 -0800)
commitb84a6dafbf2bb921baee53c0c1aba7719ee38817
tree0b93d0dd7dd559c6acad4cc0f53731eebb8e68ee
parent517b0d0b5f38c92c1807a40d71ca4bf6428ca7d5
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
src/backend/executor/execExprInterp.c
src/backend/jit/llvm/llvmjit.c
src/backend/jit/llvm/llvmjit_expr.c
src/backend/jit/llvm/llvmjit_types.c
src/include/executor/execExpr.h
src/include/jit/llvmjit.h