Postgresql 中文操作指南
Description
SPI_keepplan 保存传递的语句(由 SPI_prepare 准备),使其不会被 SPI_finish 或事务管理器释放。这使你可以重用当前会话中 C 函数的后续调用中的准备好的语句。
SPI_keepplan saves a passed statement (prepared by SPI_prepare) so that it will not be freed by SPI_finish nor by the transaction manager. This gives you the ability to reuse prepared statements in the subsequent invocations of your C function in the current session.