]> granicus.if.org Git - postgresql/commit
Compute information about EEOP_*_FETCHSOME at expression init time.
authorAndres Freund <andres@anarazel.de>
Fri, 16 Nov 2018 06:00:30 +0000 (22:00 -0800)
committerAndres Freund <andres@anarazel.de>
Fri, 16 Nov 2018 06:00:30 +0000 (22:00 -0800)
commit675af5c01e297262cd20d7416f7e568393c22c6e
tree3af0a63c0fb58bfe930f1e7fdff3c4cea1ea448d
parent1a0586de3657cd35581f0639c87d5050c6197bb7
Compute information about EEOP_*_FETCHSOME at expression init time.

Previously this information was computed when JIT compiling an
expression.  But the information is useful for assertions in the
non-JIT case too (for assertions), therefore it makes sense to move
it.

This will, in a followup commit, allow to treat different slot types
differently. E.g. for virtual slots there's no need to generate a JIT
function to deform the slot.

Author: Andres Freund
Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de
src/backend/executor/execExpr.c
src/backend/jit/llvm/llvmjit_expr.c
src/include/executor/execExpr.h