t_natts.patch

text/plain

Filename: t_natts.patch
Type: text/plain
Part: 0
Message: t_natts references in comments

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
src/backend/access/common/heaptuple.c 4 0
*** a/src/backend/access/common/heaptuple.c
--- b/src/backend/access/common/heaptuple.c
***************
*** 871,877 **** heap_modifytuple(HeapTuple tuple,
   *		the inverse of heap_form_tuple.
   *
   *		Storage for the values/isnull arrays is provided by the caller;
!  *		it should be sized according to tupleDesc->natts not tuple->t_natts.
   *
   *		Note that for pass-by-reference datatypes, the pointer placed
   *		in the Datum will point into the given tuple.
--- 871,878 ----
   *		the inverse of heap_form_tuple.
   *
   *		Storage for the values/isnull arrays is provided by the caller;
!  *		it should be sized according to tupleDesc->natts not
!  *		HeapTupleHeaderGetNatts(tuple->t_data).
   *
   *		Note that for pass-by-reference datatypes, the pointer placed
   *		in the Datum will point into the given tuple.
***************
*** 978,984 **** heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc,
   *		the inverse of heap_formtuple.
   *
   *		Storage for the values/nulls arrays is provided by the caller;
!  *		it should be sized according to tupleDesc->natts not tuple->t_natts.
   *
   *		Note that for pass-by-reference datatypes, the pointer placed
   *		in the Datum will point into the given tuple.
--- 979,986 ----
   *		the inverse of heap_formtuple.
   *
   *		Storage for the values/nulls arrays is provided by the caller;
!  *		it should be sized according to tupleDesc->natts not
!  *		HeapTupleHeaderGetNatts(tuple->t_data).
   *
   *		Note that for pass-by-reference datatypes, the pointer placed
   *		in the Datum will point into the given tuple.