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.
If your procedure is already connected, SPI_connect will return the error code
SPI_ERROR_CONNECT. This could
happen if a procedure that has called SPI_connect directly calls another procedure
that calls SPI_connect. While
recursive calls to the SPI
manager are permitted when an SQL command called through SPI
invokes another function that uses SPI, directly nested calls to SPI_connect and SPI_finish are forbidden. (But see SPI_push and SPI_pop.)
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
Proceed to the comment form.