22.2. Interface Support Functions

Table of Contents
SPI_copytuple — Makes copy of tuple in upper Executor context
SPI_modifytuple — Modifies tuple of relation
SPI_fnumber — Finds the attribute number for specified attribute
SPI_fname — Finds the attribute name for the specified attribute
SPI_getvalue — Returns the string value of the specified attribute
SPI_getbinval — Returns the binary value of the specified attribute
SPI_gettype — Returns the type name of the specified attribute
SPI_gettypeid — Returns the type OID of the specified attribute
SPI_getrelname — Returns the name of the specified relation
SPI_palloc — Allocates memory in upper Executor context
SPI_repalloc — Re-allocates memory in upper Executor context
SPI_pfree — Frees memory from upper Executor context

All functions described below may be used by connected and unconnected procedures.