int SPI_freeplan(SPIPlanPtr plan)
SPI_freeplan releases a prepared statement previously returned by SPI_prepare or saved by SPI_keepplan or SPI_saveplan.
SPI_freeplan
SPI_prepare
SPI_keepplan
SPI_saveplan
pointer to statement to free
0 on success; SPI_ERROR_ARGUMENT if plan is NULL or invalid
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.