postgresql_16:6.10.1.5.3 Return Value
PostgreSQL 16 > Server Programming > Server Programming Interface > Interface Functions > SPI_execute_extended > Return Value
The return value is the same as for SPI_execute.
When options->dest is NULL, SPI_processed and SPI_tuptable are set as in SPI_execute. When options->dest is not NULL, SPI_processed is set to zero and SPI_tuptable is set to NULL. If a tuple count is required, the caller's DestReceiver object must calculate it.