| SPI_fname NameSPI_fname -- Finds the attribute name for the specified attribute numberSynopsisSPI_fname(tupdesc, fnumber) InputsTupleDesc tupdescInput tuple descriptionint fnumberAttribute number
Outputschar *Attribute name
 | NULL if fnumber is out of range |  | SPI_result set to
SPI_ERROR_NOATTRIBUTE on error | 
DescriptionSPI_fname 
   returns the attribute name for the specified attribute.UsageAttribute numbers are 1 based.AlgorithmReturns a newly-allocated copy of the attribute name.
(Use pfree() to release the copy when done with it.) |