postgresql_16:6.10.1.11.3 Return Value
PostgreSQL 16 > Server Programming > Server Programming Interface > Interface Functions > SPI_getargcount > Return Value
The count of expected arguments for the plan. If the plan is NULL or invalid, SPI_result is set to SPI_ERROR_ARGUMENT and -1 is returned.