Supported Versions: Current (16) / 15 / 14 / 13 / 12
Development Versions: 17 / devel
Unsupported versions: 11
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.


SPI_result_code_string — return error code as string


const char * SPI_result_code_string(int code);


SPI_result_code_string returns a string representation of the result code returned by various SPI functions or stored in SPI_result.


int code

result code

Return Value

A string representation of the result code.