@@ -704,16 +704,16 @@ ExecInsert(ModifyTableState *mtstate,
704704 }
705705
706706 /*
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.
713713 */
714714 if (resultRelInfo -> ri_NumSlots >= resultRelInfo -> ri_NumSlotsInitialized )
715715 {
716- TupleDesc tdesc = CreateTupleDescCopy (slot -> tts_tupleDescriptor );
716+ TupleDesc tdesc = CreateTupleDescCopy (slot -> tts_tupleDescriptor );
717717
718718 resultRelInfo -> ri_Slots [resultRelInfo -> ri_NumSlots ] =
719719 MakeSingleTupleTableSlot (tdesc , slot -> tts_ops );
@@ -3173,7 +3173,7 @@ ExecEndModifyTable(ModifyTableState *node)
31733173 */
31743174 for (i = 0 ; i < node -> mt_nrels ; i ++ )
31753175 {
3176- int j ;
3176+ int j ;
31773177 ResultRelInfo * resultRelInfo = node -> resultRelInfo + i ;
31783178
31793179 if (!resultRelInfo -> ri_usesFdwDirectModify &&
@@ -3183,8 +3183,9 @@ ExecEndModifyTable(ModifyTableState *node)
31833183 resultRelInfo );
31843184
31853185 /*
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.
31883189 */
31893190 for (j = 0 ; j < resultRelInfo -> ri_NumSlotsInitialized ; j ++ )
31903191 {
0 commit comments