SPI_fnumber(tupdesc, fname)
Input tuple description
Field name
Attribute number
SPI_fnumber returns the attribute number for the attribute with name in fname.
Attribute numbers are 1 based.