Skip to content

Commit 342baf4

Browse files
committed
Update outdated comment. HeapTupleHeader.t_natts field doesn't exist anymore.
Kevin Grittner
1 parent 410ee35 commit 342baf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/access/common/heaptuple.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ heap_modifytuple(HeapTuple tuple,
871871
* the inverse of heap_form_tuple.
872872
*
873873
* 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).
875876
*
876877
* Note that for pass-by-reference datatypes, the pointer placed
877878
* in the Datum will point into the given tuple.
@@ -978,7 +979,8 @@ heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc,
978979
* the inverse of heap_formtuple.
979980
*
980981
* 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).
982984
*
983985
* Note that for pass-by-reference datatypes, the pointer placed
984986
* in the Datum will point into the given tuple.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy