PostgreSQL Manual
This manual is provided as a courtesy. It is not an official source. Please check postgresql.org for updated information.
The functions described here provide an interface for extracting information from result sets returned by SPI_execute and other SPI functions.
SPI_execute
All functions described in this section may be used by both connected and unconnected procedures.