@@ -6391,12 +6391,8 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap, LOCKMODE lockmode)
63916391
63926392 /* Write the tuple out to the new relation */
63936393 if (newrel)
6394- {
6395- bool insertIndexes;
6396-
63976394 table_tuple_insert(newrel, insertslot, mycid,
6398- ti_options, bistate, &insertIndexes);
6399- }
6395+ ti_options, bistate);
64006396
64016397 ResetExprContext(econtext);
64026398
@@ -21037,7 +21033,6 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
2103721033 while (table_scan_getnextslot(scan, ForwardScanDirection, srcslot))
2103821034 {
2103921035 bool found = false;
21040- bool insert_indexes;
2104121036 TupleTableSlot *insertslot;
2104221037
2104321038 /* Extract data from old tuple. */
@@ -21090,12 +21085,9 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
2109021085 ExecStoreVirtualTuple(insertslot);
2109121086 }
2109221087
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. */
2109721089 (void) table_tuple_insert(pc->partRel, insertslot, mycid,
21098- ti_options, pc->bistate, &insert_indexes );
21090+ ti_options, pc->bistate);
2109921091
2110021092 ResetExprContext(econtext);
2110121093
@@ -21364,7 +21356,6 @@ moveMergedTablesRows(Relation rel, List *mergingPartitionsList,
2136421356 while (table_scan_getnextslot(scan, ForwardScanDirection, srcslot))
2136521357 {
2136621358 TupleTableSlot *insertslot;
21367- bool insert_indexes;
2136821359
2136921360 /* Extract data from old tuple. */
2137021361 slot_getallattrs(srcslot);
@@ -21389,12 +21380,9 @@ moveMergedTablesRows(Relation rel, List *mergingPartitionsList,
2138921380 ExecStoreVirtualTuple(insertslot);
2139021381 }
2139121382
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. */
2139621384 (void) table_tuple_insert(newPartRel, insertslot, mycid,
21397- ti_options, bistate, &insert_indexes );
21385+ ti_options, bistate);
2139821386
2139921387 CHECK_FOR_INTERRUPTS();
2140021388 }
0 commit comments