SPI_gettypeid(tupdesc, fnumber)
Input tuple description
Attribute number
The type OID for the specified attribute number
SPI_gettypeid returns the type OID for the specified attribute.
Attribute numbers are 1 based.