Historical version. PostgreSQL 8.2 has reached end of support. See the current manual.
SPI_saveplan
Description
SPI_saveplan saves a passed plan (prepared by
SPI_prepare) in memory protected from freeing
by SPI_finish and by the transaction manager
and returns a pointer to the saved plan. This gives you the
ability to reuse prepared plans in the subsequent invocations of
your procedure in the current session.
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.