SPI_gettypeNameSPI_gettype -- Returns the type name of the specified attribute SynopsisSPI_gettype(tupdesc, fnumber) Inputs- TupleDesc tupdesc
Input tuple description - int fnumber
Attribute number
Outputs- char *
The type name for the specified attribute number - SPI_result
DescriptionSPI_gettype
returns a copy of the type name for the specified attribute,
or NULL on error. UsageAttribute numbers are 1 based. AlgorithmReturns a newly-allocated copy of the type name.
(Use pfree() to release the copy when done with it.) |