postgresql_16:6.10.2.3.1 Description
PostgreSQL 16 > Server Programming > Server Programming Interface > Interface Support Functions > SPI_getvalue > Description
SPI_getvalue returns the string representation of the value of the specified column.
The result is returned in memory allocated using palloc. (You can use pfree to release the memory when you don't need it anymore.)