Lines Matching refs:heaptup

2064 	HeapTuple	heaptup;  in heap_insert()  local
2079 heaptup = heap_prepare_insert(relation, tup, xid, cid, options); in heap_insert()
2085 buffer = RelationGetBufferForTuple(relation, heaptup->t_len, in heap_insert()
2109 RelationPutHeapTuple(relation, buffer, heaptup, in heap_insert()
2117 ItemPointerGetBlockNumber(&(heaptup->t_self)), in heap_insert()
2149 log_heap_new_cid(relation, heaptup); in heap_insert()
2156 if (ItemPointerGetOffsetNumber(&(heaptup->t_self)) == FirstOffsetNumber && in heap_insert()
2163 xlrec.offnum = ItemPointerGetOffsetNumber(&heaptup->t_self); in heap_insert()
2169 Assert(ItemPointerGetBlockNumber(&heaptup->t_self) == BufferGetBlockNumber(buffer)); in heap_insert()
2189 xlhdr.t_infomask2 = heaptup->t_data->t_infomask2; in heap_insert()
2190 xlhdr.t_infomask = heaptup->t_data->t_infomask; in heap_insert()
2191 xlhdr.t_hoff = heaptup->t_data->t_hoff; in heap_insert()
2202 (char *) heaptup->t_data + SizeofHeapTupleHeader, in heap_insert()
2203 heaptup->t_len - SizeofHeapTupleHeader); in heap_insert()
2225 CacheInvalidateHeapTuple(relation, heaptup, NULL); in heap_insert()
2234 if (heaptup != tup) in heap_insert()
2236 tup->t_self = heaptup->t_self; in heap_insert()
2237 heap_freetuple(heaptup); in heap_insert()
2408 HeapTuple heaptup = heaptuples[ndone + nthispage]; in heap_multi_insert() local
2410 if (PageGetHeapFreeSpace(page) < MAXALIGN(heaptup->t_len) + saveFreeSpace) in heap_multi_insert()
2413 RelationPutHeapTuple(relation, buffer, heaptup, false); in heap_multi_insert()
2420 log_heap_new_cid(relation, heaptup); in heap_multi_insert()
2498 HeapTuple heaptup = heaptuples[ndone + i]; in heap_multi_insert() local
2503 xlrec->offsets[i] = ItemPointerGetOffsetNumber(&heaptup->t_self); in heap_multi_insert()
2508 tuphdr->t_infomask2 = heaptup->t_data->t_infomask2; in heap_multi_insert()
2509 tuphdr->t_infomask = heaptup->t_data->t_infomask; in heap_multi_insert()
2510 tuphdr->t_hoff = heaptup->t_data->t_hoff; in heap_multi_insert()
2513 datalen = heaptup->t_len - SizeofHeapTupleHeader; in heap_multi_insert()
2515 (char *) heaptup->t_data + SizeofHeapTupleHeader, in heap_multi_insert()
3166 HeapTuple heaptup; in heap_update() local
3770 heaptup = heap_toast_insert_or_update(relation, newtup, &oldtup, 0); in heap_update()
3771 newtupsize = MAXALIGN(heaptup->t_len); in heap_update()
3774 heaptup = newtup; in heap_update()
3804 newbuf = RelationGetBufferForTuple(relation, heaptup->t_len, in heap_update()
3839 heaptup = newtup; in heap_update()
3914 HeapTupleSetHeapOnly(heaptup); in heap_update()
3922 HeapTupleClearHeapOnly(heaptup); in heap_update()
3926 RelationPutHeapTuple(relation, newbuf, heaptup, false); /* insert new tuple */ in heap_update()
3940 oldtup.t_data->t_ctid = heaptup->t_self; in heap_update()
3974 log_heap_new_cid(relation, heaptup); in heap_update()
3978 newbuf, &oldtup, heaptup, in heap_update()
4003 CacheInvalidateHeapTuple(relation, &oldtup, heaptup); in heap_update()
4026 if (heaptup != newtup) in heap_update()
4028 newtup->t_self = heaptup->t_self; in heap_update()
4029 heap_freetuple(heaptup); in heap_update()