1SPI_COPYTUPLE(3)         PostgreSQL 15.4 Documentation        SPI_COPYTUPLE(3)
2
3
4

NAME

6       SPI_copytuple - make a copy of a row in the upper executor context
7

SYNOPSIS

9       HeapTuple SPI_copytuple(HeapTuple row)
10

DESCRIPTION

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.
15
16       This function can only be used while connected to SPI. Otherwise, it
17       returns NULL and sets SPI_result to SPI_ERROR_UNCONNECTED.
18

ARGUMENTS

20       HeapTuple row
21           row to be copied
22

RETURN VALUE

24       the copied row, or NULL on error (see SPI_result for an error
25       indication)
26
27
28
29PostgreSQL 15.4                      2023                     SPI_COPYTUPLE(3)
Impressum