| SPI_getvalue NameSPI_getvalue -- Returns the string value of the specified attributeSynopsisSPI_getvalue(tuple, tupdesc, fnumber) InputsHeapTuple tupleInput tuple to be examinedTupleDesc tupdescInput tuple descriptionint fnumberAttribute number
Outputschar *Attribute value or NULL if
 | attribute is NULL |  | fnumber is out of range
(SPI_result set to
SPI_ERROR_NOATTRIBUTE) |  | no output function available
(SPI_result set to
SPI_ERROR_NOOUTFUNC) | 
DescriptionSPI_getvalue 
   returns an external (string) representation of the value of the specified attribute.UsageAttribute numbers are 1 based.AlgorithmThe result is returned as a palloc'd string.
(Use pfree() to release the string when done with it.) |