Name
SPI_gettype -- Returns the type name of the specified attribute
Description
SPI_gettype
returns a copy of the type name for the specified attribute,
or NULL on error.
Usage
Attribute numbers are 1 based.
Algorithm
Returns a newly-allocated copy of the type name.
(Use pfree() to release the copy when done with it.)