SPI_prepare
int SPI_getargcount(void * plan )
SPI_getargcount returns the number of arguments needed to execute a plan prepared by SPI_prepare .
SPI_getargcount
execution plan (returned by SPI_prepare )
The expected argument count for the plan , or SPI_ERROR_ARGUMENT if the plan is NULL