pgsql: Quick adaption of JIT tuple deforming to the fast defaultpatch. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Quick adaption of JIT tuple deforming to the fast defaultpatch.
Date
Msg-id E1f12Qv-0001UC-Aq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f4f5845b3182ab930e525b1419bca47ac611604e

Modified Files
--------------
src/backend/access/common/heaptuple.c |  8 +++-
src/backend/jit/llvm/llvmjit.c        |  2 +
src/backend/jit/llvm/llvmjit_deform.c | 85 +++++++++++++----------------------
src/backend/jit/llvm/llvmjit_types.c  |  1 +
src/include/executor/tuptable.h       |  1 +
src/include/jit/llvmjit.h             |  1 +
6 files changed, 41 insertions(+), 57 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Fast ALTER TABLE ADD COLUMN with a non-NULL default
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Fast ALTER TABLE ADD COLUMN with a non-NULL default