diff options
author | Andres Freund <andres@anarazel.de> | 2018-09-25 15:59:46 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-09-25 15:59:46 -0700 |
commit | a598708ffa8eb72a22eeee4e6f30bc26e4984acd (patch) | |
tree | 7b3bd39e34505898e78ff9275260cf81078c5305 /src/include/executor | |
parent | 5913b9bbf351b421141b300e37752e9ab8d85163 (diff) | |
download | postgresql-a598708ffa8eb72a22eeee4e6f30bc26e4984acd.tar.gz postgresql-a598708ffa8eb72a22eeee4e6f30bc26e4984acd.zip |
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
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/tuptable.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |