aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-06-28 11:05:54 -0400
committerAndrew Dunstan <andrew@dunslane.net>2021-06-28 11:05:54 -0400
commite1c1c30f635390b6a3ae4993e8cac213a33e6e3f (patch)
treef91c0903c634bcbe7b06c4548af82d6e351e2090 /src/backend/executor/nodeModifyTable.c
parentc31833779d5a4775d7220be4b9143bec66c9a9fd (diff)
downloadpostgresql-e1c1c30f635390b6a3ae4993e8cac213a33e6e3f.tar.gz
postgresql-e1c1c30f635390b6a3ae4993e8cac213a33e6e3f.zip
Pre branch pgindent / pgperltidy run
Along the way make a slight adjustment to src/include/utils/queryjumble.h to avoid an unused typedef.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
-rw-r--r--src/backend/executor/nodeModifyTable.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index 143517bc760..c24684aa6fe 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -704,16 +704,16 @@ ExecInsert(ModifyTableState *mtstate,
}
/*
- * Initialize the batch slots. We don't know how many slots will be
- * needed, so we initialize them as the batch grows, and we keep
- * them across batches. To mitigate an inefficiency in how resource
- * owner handles objects with many references (as with many slots
- * all referencing the same tuple descriptor) we copy the tuple
- * descriptor for each slot.
+ * Initialize the batch slots. We don't know how many slots will
+ * be needed, so we initialize them as the batch grows, and we
+ * keep them across batches. To mitigate an inefficiency in how
+ * resource owner handles objects with many references (as with
+ * many slots all referencing the same tuple descriptor) we copy
+ * the tuple descriptor for each slot.
*/
if (resultRelInfo->ri_NumSlots >= resultRelInfo->ri_NumSlotsInitialized)
{
- TupleDesc tdesc = CreateTupleDescCopy(slot->tts_tupleDescriptor);
+ TupleDesc tdesc = CreateTupleDescCopy(slot->tts_tupleDescriptor);
resultRelInfo->ri_Slots[resultRelInfo->ri_NumSlots] =
MakeSingleTupleTableSlot(tdesc, slot->tts_ops);
@@ -3173,7 +3173,7 @@ ExecEndModifyTable(ModifyTableState *node)
*/
for (i = 0; i < node->mt_nrels; i++)
{
- int j;
+ int j;
ResultRelInfo *resultRelInfo = node->resultRelInfo + i;
if (!resultRelInfo->ri_usesFdwDirectModify &&
@@ -3183,8 +3183,9 @@ ExecEndModifyTable(ModifyTableState *node)
resultRelInfo);
/*
- * Cleanup the initialized batch slots. This only matters for FDWs with
- * batching, but the other cases will have ri_NumSlotsInitialized == 0.
+ * Cleanup the initialized batch slots. This only matters for FDWs
+ * with batching, but the other cases will have ri_NumSlotsInitialized
+ * == 0.
*/
for (j = 0; j < resultRelInfo->ri_NumSlotsInitialized; j++)
{