]> granicus.if.org Git - postgresql/commit
Use platform independent type for TupleTableSlot->tts_off.
authorAndres Freund <andres@anarazel.de>
Tue, 20 Feb 2018 23:12:52 +0000 (15:12 -0800)
committerAndres Freund <andres@anarazel.de>
Tue, 20 Feb 2018 23:12:52 +0000 (15:12 -0800)
commit4c0ec9ee28279cc6a610cde8470fc8b606267b68
treefc824b122343d616b55c3161f2dfa2b1358828b1
parentc2ff42c6c1631c6c67d09fc8574186a984566a0d
Use platform independent type for TupleTableSlot->tts_off.

Previously tts_off was, for unknown reasons, of type long. For one
that's unnecessary as tuples are restricted in length, for another
long would be a bad choice of type even if that weren't the case, as
it's not reliably wider than an int. Also HeapTupleHeader->t_len is a
uint32.

This is split off from a larger patch implementing JITed tuple
deforming. Seems like an independent improvement, as tiny as it is.

Author: Andres Freund
src/backend/access/common/heaptuple.c
src/include/executor/tuptable.h