]> granicus.if.org Git - postgresql/commit
Quick adaption of JIT tuple deforming to the fast default patch.
authorAndres Freund <andres@anarazel.de>
Wed, 28 Mar 2018 04:03:10 +0000 (21:03 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 28 Mar 2018 04:03:10 +0000 (21:03 -0700)
commitf4f5845b3182ab930e525b1419bca47ac611604e
tree5cd066447b1e4f38801071d3083126004ebaea40
parentb4013b8e4a271816ba87aa56f46dbc04a083d962
Quick adaption of JIT tuple deforming to the fast default patch.

Instead using memset to set tts_isnull, call the new
slot_getmissingattrs().

Also fix a bug (= instead of >=) in the code generation. Normally = is
correct, but when repeatedly deforming fields not in a
tuple (e.g. deform up to natts + 1 and then natts + 2) >= is needed.

Discussion: https://postgr.es/m/20180328010053.i2qvsuuusst4lgmc@alap3.anarazel.de
src/backend/access/common/heaptuple.c
src/backend/jit/llvm/llvmjit.c
src/backend/jit/llvm/llvmjit_deform.c
src/backend/jit/llvm/llvmjit_types.c
src/include/executor/tuptable.h
src/include/jit/llvmjit.h