aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heapam_handler.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-04-11 15:47:53 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-04-11 16:01:30 +0300
commitda841aa4dc279bb0053de56121c927ec943edff3 (patch)
treeefbd41861037fd9b4f91460309b6cccb527a9955 /src/backend/access/heap/heapam_handler.c
parentbc1e2092ebb857802a9713d0d3588079e2f0216a (diff)
downloadpostgresql-da841aa4dc279bb0053de56121c927ec943edff3.tar.gz
postgresql-da841aa4dc279bb0053de56121c927ec943edff3.zip
Revert: Let table AM insertion methods control index insertion
This commit reverts b1484a3f19 per review by Andres Freund. Discussion: https://postgr.es/m/20240410165236.rwyrny7ihi4ddxw4%40awork3.anarazel.de
Diffstat (limited to 'src/backend/access/heap/heapam_handler.c')
-rw-r--r--src/backend/access/heap/heapam_handler.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c
index 2c423286d72..00d82705327 100644
--- a/src/backend/access/heap/heapam_handler.c
+++ b/src/backend/access/heap/heapam_handler.c
@@ -245,7 +245,7 @@ heapam_tuple_satisfies_snapshot(Relation rel, TupleTableSlot *slot,
static TupleTableSlot *
heapam_tuple_insert(Relation relation, TupleTableSlot *slot, CommandId cid,
- int options, BulkInsertState bistate, bool *insert_indexes)
+ int options, BulkInsertState bistate)
{
bool shouldFree = true;
HeapTuple tuple = ExecFetchSlotHeapTuple(slot, true, &shouldFree);
@@ -261,8 +261,6 @@ heapam_tuple_insert(Relation relation, TupleTableSlot *slot, CommandId cid,
if (shouldFree)
pfree(tuple);
- *insert_indexes = true;
-
return slot;
}