@@ -263,7 +263,7 @@ ExecInsert(ModifyTableState *mtstate,
263263 Oid newId ;
264264 List * recheckIndexes = NIL ;
265265 TupleTableSlot * oldslot = slot ,
266- * result = NULL ;
266+ * result = NULL ;
267267
268268 /*
269269 * get the heap tuple out of the tuple table slot, making sure we have a
@@ -279,19 +279,19 @@ ExecInsert(ModifyTableState *mtstate,
279279 /* Determine the partition to heap_insert the tuple into */
280280 if (mtstate -> mt_partition_dispatch_info )
281281 {
282- int leaf_part_index ;
282+ int leaf_part_index ;
283283 TupleConversionMap * map ;
284284
285285 /*
286286 * Away we go ... If we end up not finding a partition after all,
287287 * ExecFindPartition() does not return and errors out instead.
288- * Otherwise, the returned value is to be used as an index into
289- * arrays mt_partitions[] and mt_partition_tupconv_maps[] that
290- * will get us the ResultRelInfo and TupleConversionMap for the
291- * partition, respectively.
288+ * Otherwise, the returned value is to be used as an index into arrays
289+ * mt_partitions[] and mt_partition_tupconv_maps[] that will get us
290+ * the ResultRelInfo and TupleConversionMap for the partition,
291+ * respectively.
292292 */
293293 leaf_part_index = ExecFindPartition (resultRelInfo ,
294- mtstate -> mt_partition_dispatch_info ,
294+ mtstate -> mt_partition_dispatch_info ,
295295 slot ,
296296 estate );
297297 Assert (leaf_part_index >= 0 &&
@@ -308,7 +308,7 @@ ExecInsert(ModifyTableState *mtstate,
308308 if (resultRelInfo -> ri_FdwRoutine )
309309 ereport (ERROR ,
310310 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
311- errmsg ("cannot route inserted tuples to a foreign table" )));
311+ errmsg ("cannot route inserted tuples to a foreign table" )));
312312
313313 /* For ExecInsertIndexTuples() to work on the partition's indexes */
314314 estate -> es_result_relation_info = resultRelInfo ;
@@ -320,14 +320,14 @@ ExecInsert(ModifyTableState *mtstate,
320320 map = mtstate -> mt_partition_tupconv_maps [leaf_part_index ];
321321 if (map )
322322 {
323- Relation partrel = resultRelInfo -> ri_RelationDesc ;
323+ Relation partrel = resultRelInfo -> ri_RelationDesc ;
324324
325325 tuple = do_convert_tuple (tuple , map );
326326
327327 /*
328- * We must use the partition's tuple descriptor from this
329- * point on, until we're finished dealing with the partition.
330- * Use the dedicated slot for that.
328+ * We must use the partition's tuple descriptor from this point
329+ * on, until we're finished dealing with the partition. Use the
330+ * dedicated slot for that.
331331 */
332332 slot = mtstate -> mt_partition_tuple_slot ;
333333 Assert (slot != NULL );
@@ -1730,12 +1730,12 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
17301730 if (operation == CMD_INSERT &&
17311731 rel -> rd_rel -> relkind == RELKIND_PARTITIONED_TABLE )
17321732 {
1733- PartitionDispatch * partition_dispatch_info ;
1734- ResultRelInfo * partitions ;
1733+ PartitionDispatch * partition_dispatch_info ;
1734+ ResultRelInfo * partitions ;
17351735 TupleConversionMap * * partition_tupconv_maps ;
1736- TupleTableSlot * partition_tuple_slot ;
1737- int num_parted ,
1738- num_partitions ;
1736+ TupleTableSlot * partition_tuple_slot ;
1737+ int num_parted ,
1738+ num_partitions ;
17391739
17401740 ExecSetupPartitionTupleRouting (rel ,
17411741 & partition_dispatch_info ,
@@ -1784,7 +1784,7 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
17841784 {
17851785 TupleTableSlot * slot ;
17861786 ExprContext * econtext ;
1787- List * returningList ;
1787+ List * returningList ;
17881788
17891789 /*
17901790 * Initialize result tuple slot and assign its rowtype using the first
@@ -1821,9 +1821,9 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
18211821 /*
18221822 * Build a projection for each leaf partition rel. Note that we
18231823 * didn't build the returningList for each partition within the
1824- * planner, but simple translation of the varattnos for each
1825- * partition will suffice. This only occurs for the INSERT case;
1826- * UPDATE/DELETE are handled above.
1824+ * planner, but simple translation of the varattnos for each partition
1825+ * will suffice. This only occurs for the INSERT case; UPDATE/DELETE
1826+ * are handled above.
18271827 */
18281828 resultRelInfo = mtstate -> mt_partitions ;
18291829 returningList = linitial (node -> returningLists );
@@ -2095,7 +2095,8 @@ ExecEndModifyTable(ModifyTableState *node)
20952095 resultRelInfo );
20962096 }
20972097
2098- /* Close all the partitioned tables, leaf partitions, and their indices
2098+ /*
2099+ * Close all the partitioned tables, leaf partitions, and their indices
20992100 *
21002101 * Remember node->mt_partition_dispatch_info[0] corresponds to the root
21012102 * partitioned table, which we must not try to close, because it is the
0 commit comments