Change TupleTableSlot->tts_nvalid to type AttrNumber.

Andres Freund <andres@anarazel.de>

Commit: a598708ffa8eb72a22eeee4e6f30bc26e4984acd
Author: Andres Freund <andres@anarazel.de>
Date: 2018-09-25T22:59:46Z
Releases: 12.0
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

Files

Discussion