mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Revert: Allow table AM tuple_insert() method to return the different slot
This commit reverts c35a3fb5e0
per review by Andres Freund.
Discussion: https://postgr.es/m/20240410165236.rwyrny7ihi4ddxw4%40awork3.anarazel.de
This commit is contained in:
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user