SPI_preparecan be used with
true if a plan prepared by
SPI_prepare can be passed as an argument to
SPI_cursor_open and false if that is not the case. The criteria are
that the plan represents one single
command and that this command is a SELECT without an INTO
true or false to indicate if the plan can produce a cursor or not, or SPI_ERROR_ARGUMENT if the plan is NULL
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.