File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -632,6 +632,7 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
632
632
Size len ;
633
633
OffsetNumber newoff ;
634
634
HeapTuple heaptup ;
635
+ TransactionId xmin , xmax ;
635
636
636
637
/*
637
638
* If the new tuple is too big for storage or contains already toasted
@@ -719,9 +720,11 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
719
720
rewrite_page_prepare_for_xid (page , HeapTupleGetRawXmax (heaptup ),
720
721
(heaptup -> t_data -> t_infomask & HEAP_XMAX_IS_MULTI ) ? true : false);
721
722
723
+ xmin = HeapTupleGetXmin (heaptup );
724
+ xmax = HeapTupleGetRawXmax (heaptup );
722
725
HeapTupleCopyEpochFromPage (heaptup , page );
723
- HeapTupleSetXmin (heaptup , HeapTupleGetXmin ( heaptup ) );
724
- HeapTupleSetXmax (heaptup , HeapTupleGetRawXmax ( heaptup ) );
726
+ HeapTupleSetXmin (heaptup , xmin );
727
+ HeapTupleSetXmax (heaptup , xmax );
725
728
726
729
/* And now we can insert the tuple into the page */
727
730
newoff = PageAddItem (page , (Item ) heaptup -> t_data , heaptup -> t_len ,
You can’t perform that action at this time.
0 commit comments