pgsql: Change TupleTableSlot->tts_nvalid to type AttrNumber.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change TupleTableSlot->tts_nvalid to type AttrNumber.
Date: 2018-09-25 23:00:43
Message-ID: E1g4wJv-0000h9-Pa@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

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

Modified Files
--------------
src/backend/jit/llvm/llvmjit_deform.c | 4 ++--
src/backend/jit/llvm/llvmjit_expr.c | 2 +-
src/include/executor/tuptable.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-09-25 23:39:05 pgsql: Remove function list from prologue of execTuples.c.
Previous Message Alvaro Herrera 2018-09-25 20:57:24 pgsql: Remove obsolete comment