SPI_execp executes a plan
SPI_prepare. tcount has the same interpretation as in
execution plan (returned by
actual parameter values
An array describing which parameters are null. n indicates a null value (entry in values will be ignored); a space indicates a nonnull value (entry in values is valid).
If nulls is NULL then
SPI_execp assumes that no parameters are
number of row for which plan is to be executed
The return value is the same as for
SPI_exec or one of the following:
if plan is NULL or count is less than 0
if values is NULL and plan was prepared with some parameters
SPI_processed and SPI_tuptable are set as in
SPI_exec if successful.
If one of the objects (a table, function, etc.) referenced by
the prepared plan is dropped during the session then the result
SPI_execp for this plan will be
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.