postgresql_16:6.10.3.6.1 Description
PostgreSQL 16 > Server Programming > Server Programming Interface > Memory Management > SPI_modifytuple > Description
SPI_modifytuple creates a new row by substituting new values for selected columns, copying the original row's columns at other positions. The input row is not modified. The new row is returned in the upper executor context.
This function can only be used while connected to SPI. Otherwise, it returns NULL and sets SPI_result to SPI_ERROR_UNCONNECTED.