@@ -298,13 +298,14 @@ tts_virtual_copy_heap_tuple(TupleTableSlot *slot)
298
298
}
299
299
300
300
static MinimalTuple
301
- tts_virtual_copy_minimal_tuple (TupleTableSlot * slot )
301
+ tts_virtual_copy_minimal_tuple (TupleTableSlot * slot , Size extra )
302
302
{
303
303
Assert (!TTS_EMPTY (slot ));
304
304
305
305
return heap_form_minimal_tuple (slot -> tts_tupleDescriptor ,
306
306
slot -> tts_values ,
307
- slot -> tts_isnull );
307
+ slot -> tts_isnull ,
308
+ extra );
308
309
}
309
310
310
311
@@ -472,14 +473,14 @@ tts_heap_copy_heap_tuple(TupleTableSlot *slot)
472
473
}
473
474
474
475
static MinimalTuple
475
- tts_heap_copy_minimal_tuple (TupleTableSlot * slot )
476
+ tts_heap_copy_minimal_tuple (TupleTableSlot * slot , Size extra )
476
477
{
477
478
HeapTupleTableSlot * hslot = (HeapTupleTableSlot * ) slot ;
478
479
479
480
if (!hslot -> tuple )
480
481
tts_heap_materialize (slot );
481
482
482
- return minimal_tuple_from_heap_tuple (hslot -> tuple );
483
+ return minimal_tuple_from_heap_tuple (hslot -> tuple , extra );
483
484
}
484
485
485
486
static void
@@ -607,7 +608,8 @@ tts_minimal_materialize(TupleTableSlot *slot)
607
608
{
608
609
mslot -> mintuple = heap_form_minimal_tuple (slot -> tts_tupleDescriptor ,
609
610
slot -> tts_values ,
610
- slot -> tts_isnull );
611
+ slot -> tts_isnull ,
612
+ 0 );
611
613
}
612
614
else
613
615
{
@@ -617,7 +619,7 @@ tts_minimal_materialize(TupleTableSlot *slot)
617
619
* TTS_FLAG_SHOULDFREE set). Copy the minimal tuple into the given
618
620
* slot's memory context.
619
621
*/
620
- mslot -> mintuple = heap_copy_minimal_tuple (mslot -> mintuple );
622
+ mslot -> mintuple = heap_copy_minimal_tuple (mslot -> mintuple , 0 );
621
623
}
622
624
623
625
slot -> tts_flags |= TTS_FLAG_SHOULDFREE ;
@@ -666,14 +668,14 @@ tts_minimal_copy_heap_tuple(TupleTableSlot *slot)
666
668
}
667
669
668
670
static MinimalTuple
669
- tts_minimal_copy_minimal_tuple (TupleTableSlot * slot )
671
+ tts_minimal_copy_minimal_tuple (TupleTableSlot * slot , Size extra )
670
672
{
671
673
MinimalTupleTableSlot * mslot = (MinimalTupleTableSlot * ) slot ;
672
674
673
675
if (!mslot -> mintuple )
674
676
tts_minimal_materialize (slot );
675
677
676
- return heap_copy_minimal_tuple (mslot -> mintuple );
678
+ return heap_copy_minimal_tuple (mslot -> mintuple , extra );
677
679
}
678
680
679
681
static void
@@ -926,7 +928,7 @@ tts_buffer_heap_copy_heap_tuple(TupleTableSlot *slot)
926
928
}
927
929
928
930
static MinimalTuple
929
- tts_buffer_heap_copy_minimal_tuple (TupleTableSlot * slot )
931
+ tts_buffer_heap_copy_minimal_tuple (TupleTableSlot * slot , Size extra )
930
932
{
931
933
BufferHeapTupleTableSlot * bslot = (BufferHeapTupleTableSlot * ) slot ;
932
934
@@ -935,7 +937,7 @@ tts_buffer_heap_copy_minimal_tuple(TupleTableSlot *slot)
935
937
if (!bslot -> base .tuple )
936
938
tts_buffer_heap_materialize (slot );
937
939
938
- return minimal_tuple_from_heap_tuple (bslot -> base .tuple );
940
+ return minimal_tuple_from_heap_tuple (bslot -> base .tuple , extra );
939
941
}
940
942
941
943
static inline void
@@ -1895,7 +1897,7 @@ ExecFetchSlotMinimalTuple(TupleTableSlot *slot,
1895
1897
{
1896
1898
if (shouldFree )
1897
1899
* shouldFree = true;
1898
- return slot -> tts_ops -> copy_minimal_tuple (slot );
1900
+ return slot -> tts_ops -> copy_minimal_tuple (slot , 0 );
1899
1901
}
1900
1902
}
1901
1903
0 commit comments