@@ -871,7 +871,8 @@ heap_modifytuple(HeapTuple tuple,
871
871
*the inverse of heap_form_tuple.
872
872
*
873
873
*Storage for the values/isnull arrays is provided by the caller;
874
- *it should be sized according to tupleDesc->natts not tuple->t_natts.
874
+ *it should be sized according to tupleDesc->natts not
875
+ *HeapTupleHeaderGetNatts(tuple->t_data).
875
876
*
876
877
*Note that for pass-by-reference datatypes, the pointer placed
877
878
*in the Datum will point into the given tuple.
@@ -978,7 +979,8 @@ heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc,
978
979
*the inverse of heap_formtuple.
979
980
*
980
981
*Storage for the values/nulls arrays is provided by the caller;
981
- *it should be sized according to tupleDesc->natts not tuple->t_natts.
982
+ *it should be sized according to tupleDesc->natts not
983
+ *HeapTupleHeaderGetNatts(tuple->t_data).
982
984
*
983
985
*Note that for pass-by-reference datatypes, the pointer placed
984
986
*in the Datum will point into the given tuple.