postgresql_16:6.10.1.13.3 Return Value
PostgreSQL 16 > Server Programming > Server Programming Interface > Interface Functions > SPI_is_cursor_plan > Return Value
true or false to indicate if the plan can produce a cursor or not, with SPI_result set to zero. If it is not possible to determine the answer (for example, if the plan is NULL or invalid, or if called when not connected to SPI), then SPI_result is set to a suitable error code and false is returned.