Change TupleTableSlot->tts_nvalid to type AttrNumber.
authorAndres Freund <andres@anarazel.de>
Tue, 25 Sep 2018 22:59:46 +0000 (15:59 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 25 Sep 2018 22:59:46 +0000 (15:59 -0700)
commita598708ffa8eb72a22eeee4e6f30bc26e4984acd
tree7b3bd39e34505898e78ff9275260cf81078c5305
parent5913b9bbf351b421141b300e37752e9ab8d85163
Change TupleTableSlot->tts_nvalid to type AttrNumber.

Previously it was an int / 4 bytes. The maximum number of attributes
in a tuple is restricted by the maximum value Var->varattno, which is
an AttrNumber/int16. Hence use the same data type for
TupleTableSlot->tts_nvalid.

Author: Ashutosh Bapat
Discussion: https://postgr.es/m/20180220224318.gw4oe5jadhpmcdnm@alap3.anarazel.de
src/backend/jit/llvm/llvmjit_deform.c
src/backend/jit/llvm/llvmjit_expr.c
src/include/executor/tuptable.h