@@ -704,16 +704,16 @@ ExecInsert(ModifyTableState *mtstate,
704
704
}
705
705
706
706
/*
707
- * Initialize the batch slots. We don't know how many slots will be
708
- * needed, so we initialize them as the batch grows, and we keep
709
- * them across batches. To mitigate an inefficiency in how resource
710
- * owner handles objects with many references (as with many slots
711
- * all referencing the same tuple descriptor) we copy the tuple
712
- * descriptor for each slot.
707
+ * Initialize the batch slots. We don't know how many slots will
708
+ * be needed, so we initialize them as the batch grows, and we
709
+ * keep them across batches. To mitigate an inefficiency in how
710
+ * resource owner handles objects with many references (as with
711
+ * many slots all referencing the same tuple descriptor) we copy
712
+ * the tuple descriptor for each slot.
713
713
*/
714
714
if (resultRelInfo -> ri_NumSlots >= resultRelInfo -> ri_NumSlotsInitialized )
715
715
{
716
- TupleDesc tdesc = CreateTupleDescCopy (slot -> tts_tupleDescriptor );
716
+ TupleDesc tdesc = CreateTupleDescCopy (slot -> tts_tupleDescriptor );
717
717
718
718
resultRelInfo -> ri_Slots [resultRelInfo -> ri_NumSlots ] =
719
719
MakeSingleTupleTableSlot (tdesc , slot -> tts_ops );
@@ -3173,7 +3173,7 @@ ExecEndModifyTable(ModifyTableState *node)
3173
3173
*/
3174
3174
for (i = 0 ; i < node -> mt_nrels ; i ++ )
3175
3175
{
3176
- int j ;
3176
+ int j ;
3177
3177
ResultRelInfo * resultRelInfo = node -> resultRelInfo + i ;
3178
3178
3179
3179
if (!resultRelInfo -> ri_usesFdwDirectModify &&
@@ -3183,8 +3183,9 @@ ExecEndModifyTable(ModifyTableState *node)
3183
3183
resultRelInfo );
3184
3184
3185
3185
/*
3186
- * Cleanup the initialized batch slots. This only matters for FDWs with
3187
- * batching, but the other cases will have ri_NumSlotsInitialized == 0.
3186
+ * Cleanup the initialized batch slots. This only matters for FDWs
3187
+ * with batching, but the other cases will have ri_NumSlotsInitialized
3188
+ * == 0.
3188
3189
*/
3189
3190
for (j = 0 ; j < resultRelInfo -> ri_NumSlotsInitialized ; j ++ )
3190
3191
{
0 commit comments