Use platform independent type for TupleTableSlot->tts_off.

Andres Freund <andres@anarazel.de>

Commit: 4c0ec9ee28279cc6a610cde8470fc8b606267b68
Author: Andres Freund <andres@anarazel.de>
Date: 2018-02-20T23:12:52Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/access/common/heaptuple.c modified +2 −2
src/include/executor/tuptable.h modified +1 −1