Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit342baf4

Browse files
committed
Update outdated comment. HeapTupleHeader.t_natts field doesn't exist anymore.
Kevin Grittner
1 parent410ee35 commit342baf4

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)

[8]ページ先頭

©2009-2025 Movatter.jp