GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SPI_CONNECT(3) PostgreSQL 14.2 Documentation SPI_CONNECT(3)

SPI_connect, SPI_connect_ext - connect a C function to the SPI manager

int SPI_connect(void)

int SPI_connect_ext(int options)

SPI_connect opens a connection from a C function 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 C functions.

SPI_connect_ext does the same but has an argument that allows passing option flags. Currently, the following option values are available:

SPI_OPT_NONATOMIC

Sets the SPI connection to be nonatomic, which means that transaction control calls SPI_commit, SPI_rollback, and SPI_start_transaction are allowed. Otherwise, calling these functions will result in an immediate error.

SPI_connect() is equivalent to SPI_connect_ext(0).

SPI_OK_CONNECT
on success

SPI_ERROR_CONNECT

on error
2022 PostgreSQL 14.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.