注意:tuple->t_data的位置是HeapTupleData往后偏移多少能到HeapTupleHeaderData头的位置 内存结构是:HeapTupleData+HeapTupleHeaderData+数据 代码语言:javascript 复制 heap_form_tuple...len=offsetof(HeapTupleHeaderData,t_bits): 计算出头的大小len=23,t_bits是柔性数组指针 hoff=len=MAXALIGN(len);: 对齐hoff=...
newTuple =heap_form_tuple(tupleDesc, values, nulls); newTuple->t_data->t_ctid = oldTuple->t_data->t_ctid; newTuple->t_self = oldTuple->t_self;if(tupleDesc->tdhasoid) HeapTupleSetOid(newTuple, HeapTupleGetOid(oldTuple)); heap_inplace_update(gp_fastsequence_rel, newTuple); heap...