From a598708ffa8eb72a22eeee4e6f30bc26e4984acd Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 25 Sep 2018 15:59:46 -0700 Subject: 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/include/executor/tuptable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/executor') diff --git a/src/include/executor/tuptable.h b/src/include/executor/tuptable.h index 02171ce94cb..c51d89b0c0a 100644 --- a/src/include/executor/tuptable.h +++ b/src/include/executor/tuptable.h @@ -125,7 +125,7 @@ typedef struct TupleTableSlot MemoryContext tts_mcxt; /* slot itself is in this context */ Buffer tts_buffer; /* tuple's buffer, or InvalidBuffer */ #define FIELDNO_TUPLETABLESLOT_NVALID 9 - int tts_nvalid; /* # of valid values in tts_values */ + AttrNumber tts_nvalid; /* # of valid values in tts_values */ #define FIELDNO_TUPLETABLESLOT_VALUES 10 Datum *tts_values; /* current per-attribute values */ #define FIELDNO_TUPLETABLESLOT_ISNULL 11 -- cgit v1.2.3