postgresql_16:6.10.3.6.2 Arguments
PostgreSQL 16 > Server Programming > Server Programming Interface > Memory Management > SPI_modifytuple > Arguments
Relation rel``
Used only as the source of the row descriptor for the row. (Passing a relation rather than a row descriptor is a misfeature.)
HeapTuple row``
row to be modified
int ncols``
number of columns to be changed
**int * colnum``**
an array of length ncols, containing the numbers of the columns that are to be changed (column numbers start at 1)
**Datum * values``**
an array of length ncols, containing the new values for the specified columns
**const char * nulls``**
an array of length ncols, describing which new values are null
If nulls is NULL then SPI_modifytuple assumes that no new values are null. Otherwise, each entry of the nulls array should be ' ' if the corresponding new value is non-null, or 'n' if the corresponding new value is null. (In the latter case, the actual value in the corresponding values entry doesn't matter.) Note that nulls is not a text string, just an array: it does not need a '\0' terminator.