MCPcopy Create free account
hub / github.com/apache/cloudberry / table_multi_insert

Function table_multi_insert

src/include/access/tableam.h:1657–1663  ·  view source on GitHub ↗

* Insert multiple tuples into a table. * * This is like table_tuple_insert(), but inserts multiple tuples in one * operation. That's often faster than calling table_tuple_insert() in a loop, * because e.g. the AM can reduce WAL logging and page locking overhead. * * Except for taking `nslots` tuples as input, and an array of TupleTableSlots * in `slots`, the parameters for table_multi_inser

Source from the content-addressed store, hash-verified

1655 * temporary context before calling this, if that's a problem.
1656 */
1657static inline void
1658table_multi_insert(Relation rel, TupleTableSlot **slots, int nslots,
1659 CommandId cid, int options, struct BulkInsertStateData *bistate)
1660{
1661 rel->rd_tableam->multi_insert(rel, slots, nslots,
1662 cid, options, bistate);
1663}
1664
1665/*
1666 * Delete a tuple.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected