SPI_modifytuple(rel, tuple , nattrs , attnum , Values , Nulls)
Input tuple to be modified
Number of attribute numbers in attnum
Array of numbers of the attributes that are to be changed
New values for the attributes specified
Which attributes are NULL, if any
New tuple with modifications
non-NULL if tuple is not NULL and the modify was successful |
NULL only if tuple is NULL |
SPI_ERROR_ARGUMENT if rel is NULL or tuple is NULL or natts ≤ 0 or attnum is NULL or Values is NULL. |
SPI_ERROR_NOATTRIBUTE if there is an invalid attribute number in attnum (attnum ≤ 0 or > number of attributes in tuple) |
SPI_modifytuple Modifies a tuple in upper Executor context. See the section on Memory Management.