SPI_getbinvalNameSPI_getbinval -- Returns the binary value of the specified attribute SynopsisSPI_getbinval(tuple, tupdesc, fnumber, isnull) Inputs- HeapTuple tuple
Input tuple to be examined - TupleDesc tupdesc
Input tuple description - int fnumber
Attribute number
Outputs- Datum
Attribute binary value - bool * isnull
flag for null value in attribute - SPI_result
DescriptionSPI_getbinval
returns the specified attribute's value in internal form (as a Datum). UsageAttribute numbers are 1 based. AlgorithmDoes not allocate new space for the datum. In the case of a pass-by-
reference data type, the Datum will be a pointer into the given tuple. |