4 SPI_copytuple — make a copy of a row in the upper executor context
8 HeapTuple SPI_copytuple(HeapTuple row)
12 SPI_copytuple makes a copy of a row in the upper executor context. This
13 is normally used to return a modified row from a trigger. In a function
14 declared to return a composite type, use SPI_returntuple instead.
16 This function can only be used while connected to SPI. Otherwise, it
17 returns NULL and sets SPI_result to SPI_ERROR_UNCONNECTED.
26 the copied row, or NULL on error (see SPI_result for an error