@@ -6391,12 +6391,8 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap, LOCKMODE lockmode)
6391
6391
6392
6392
/* Write the tuple out to the new relation */
6393
6393
if (newrel)
6394
- {
6395
- boolinsertIndexes;
6396
-
6397
6394
table_tuple_insert(newrel, insertslot, mycid,
6398
- ti_options, bistate, &insertIndexes);
6399
- }
6395
+ ti_options, bistate);
6400
6396
6401
6397
ResetExprContext(econtext);
6402
6398
@@ -21037,7 +21033,6 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
21037
21033
while (table_scan_getnextslot(scan, ForwardScanDirection, srcslot))
21038
21034
{
21039
21035
boolfound = false;
21040
- boolinsert_indexes;
21041
21036
TupleTableSlot *insertslot;
21042
21037
21043
21038
/* Extract data from old tuple. */
@@ -21090,12 +21085,9 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
21090
21085
ExecStoreVirtualTuple(insertslot);
21091
21086
}
21092
21087
21093
- /*
21094
- * Write the tuple out to the new relation. We ignore the
21095
- * 'insert_indexes' flag since newPartRel has no indexes anyway.
21096
- */
21088
+ /* Write the tuple out to the new relation. */
21097
21089
(void) table_tuple_insert(pc->partRel, insertslot, mycid,
21098
- ti_options, pc->bistate, &insert_indexes );
21090
+ ti_options, pc->bistate);
21099
21091
21100
21092
ResetExprContext(econtext);
21101
21093
@@ -21364,7 +21356,6 @@ moveMergedTablesRows(Relation rel, List *mergingPartitionsList,
21364
21356
while (table_scan_getnextslot(scan, ForwardScanDirection, srcslot))
21365
21357
{
21366
21358
TupleTableSlot *insertslot;
21367
- boolinsert_indexes;
21368
21359
21369
21360
/* Extract data from old tuple. */
21370
21361
slot_getallattrs(srcslot);
@@ -21389,12 +21380,9 @@ moveMergedTablesRows(Relation rel, List *mergingPartitionsList,
21389
21380
ExecStoreVirtualTuple(insertslot);
21390
21381
}
21391
21382
21392
- /*
21393
- * Write the tuple out to the new relation. We ignore the
21394
- * 'insert_indexes' flag since newPartRel has no indexes anyway.
21395
- */
21383
+ /* Write the tuple out to the new relation. */
21396
21384
(void) table_tuple_insert(newPartRel, insertslot, mycid,
21397
- ti_options, bistate, &insert_indexes );
21385
+ ti_options, bistate);
21398
21386
21399
21387
CHECK_FOR_INTERRUPTS();
21400
21388
}