Postgresql 中文操作指南

SPI_cursor_close

SPI_cursor_close — 关闭游标

SPI_cursor_close — close a cursor

Synopsis

void SPI_cursor_close(Portal portal)

Description

SPI_cursor_close 关闭先前创建的游标,并释放其门户存储。

SPI_cursor_close closes a previously created cursor and releases its portal storage.

在事务的末尾自动关闭所有打开的游标。 SPI_cursor_close 仅在希望更快释放资源时调用。

All open cursors are closed automatically at the end of a transaction. SPI_cursor_close need only be invoked if it is desirable to release resources sooner.

Arguments

  • Portal _portal_

    • portal containing the cursor