14th September 2023: PostgreSQL 16 Released!
Supported Versions: Current (16) / 15 / 14 / 13 / 12 / 11
Development Versions: devel


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.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.