SPI_gettype returns a copy of
the type name for the specified attribute, or NULL on error.
Returns a newly-allocated copy of the type name. (Use pfree() to release the copy when done with it.)
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.