30th September 2021: PostgreSQL 14 Released!
Unsupported versions: 7.4
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.



SPI_copytupleintoslot -- make a copy of a row and descriptor in the upper executor context


TupleTableSlot * SPI_copytupleintoslot(HeapTuple row, TupleDesc rowdesc)


SPI_copytupleintoslot makes a copy of a row in the upper executor context, returning it in the form of a filled-in TupleTableSlot structure.


HeapTuple row

row to be copied

TupleDesc rowdesc

row descriptor to be copied

Return Value

TupleTableSlot containing the copied row and descriptor; NULL only if row or rowdesc are NULL