PostgreSQL Manual
This manual is provided as a courtesy. It is not an official source. Please check postgresql.org for updated information.
int SPI_freeplan(void *plan)
SPI_freeplan releases a command execution plan previously returned by SPI_prepare or saved by SPI_saveplan.
SPI_freeplan
SPI_prepare
SPI_saveplan
pointer to plan to free
SPI_ERROR_ARGUMENT if plan is NULL.