postgresql_16:6.10.1.31.3 Return Value
PostgreSQL 16 > Server Programming > Server Programming Interface > Interface Functions > SPI_unregister_relation > Return Value
If the execution of the command was successful then the following (nonnegative) value will be returned: SPI_OK_REL_UNREGISTER if the tuplestore has been successfully removed from the registry
On error, one of the following negative values is returned: SPI_ERROR_ARGUMENT if name is NULL SPI_ERROR_UNCONNECTED if called from an unconnected C function SPI_ERROR_REL_NOT_FOUND if name is not found in the registry for the current connection