aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/heap/heapam_handler.c4
-rw-r--r--src/backend/commands/tablecmds.c8
-rw-r--r--src/backend/executor/nodeModifyTable.c6
3 files changed, 8 insertions, 10 deletions
diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c
index cf41ab239ed..c019d96a162 100644
--- a/src/backend/access/heap/heapam_handler.c
+++ b/src/backend/access/heap/heapam_handler.c
@@ -238,7 +238,7 @@ heapam_tuple_satisfies_snapshot(Relation rel, TupleTableSlot *slot,
* ----------------------------------------------------------------------------
*/
-static TupleTableSlot *
+static void
heapam_tuple_insert(Relation relation, TupleTableSlot *slot, CommandId cid,
int options, BulkInsertState bistate)
{
@@ -255,8 +255,6 @@ heapam_tuple_insert(Relation relation, TupleTableSlot *slot, CommandId cid,
if (shouldFree)
pfree(tuple);
-
- return slot;
}
static void
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 571feea270e..000212f24c4 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -21086,8 +21086,8 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
}
/* Write the tuple out to the new relation. */
- (void) table_tuple_insert(pc->partRel, insertslot, mycid,
- ti_options, pc->bistate);
+ table_tuple_insert(pc->partRel, insertslot, mycid,
+ ti_options, pc->bistate);
ResetExprContext(econtext);
@@ -21381,8 +21381,8 @@ moveMergedTablesRows(Relation rel, List *mergingPartitionsList,
}
/* Write the tuple out to the new relation. */
- (void) table_tuple_insert(newPartRel, insertslot, mycid,
- ti_options, bistate);
+ table_tuple_insert(newPartRel, insertslot, mycid,
+ ti_options, bistate);
CHECK_FOR_INTERRUPTS();
}
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index c570965da09..cee60d3659b 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -1127,9 +1127,9 @@ ExecInsert(ModifyTableContext *context,
else
{
/* insert the tuple normally */
- slot = table_tuple_insert(resultRelationDesc, slot,
- estate->es_output_cid,
- 0, NULL);
+ table_tuple_insert(resultRelationDesc, slot,
+ estate->es_output_cid,
+ 0, NULL);
/* insert index entries for tuple */
if (resultRelInfo->ri_NumIndices > 0)