Historical version. PostgreSQL 10 has reached end of support. 2022-11-10. See the current manual.
SPI_connect
SPI_connect — connect a procedure to the SPI manager
Synopsis
int SPI_connect(void)
Description
SPI_connect opens a connection from a
procedure invocation to the SPI manager. You must call this
function if you want to execute commands through SPI. Some utility
SPI functions can be called from unconnected procedures.
Return Value
SPI_OK_CONNECTon success
SPI_ERROR_CONNECTon error
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.