Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SPI_freeplan - free a previously saved prepared statement

Arguments

SPIPlanPtr plan pointer to statement to free

Description

SPI_freeplan releases a prepared statement previously returned by SPI_prepare or saved by SPI_keepplan or SPI_saveplan.

Name

SPI_freeplan - free a previously saved prepared statement

Return Value

0 on success; SPI_ERROR_ARGUMENT if plan is NULL or invalid PostgreSQL 17.5 2025 SPI_FREEPLAN(3)

Synopsis

int SPI_freeplan(SPIPlanPtr plan)

See Also