From 6eb9c5a5657d1fe77b55cc261450f3538d35a94d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:19:15 +0200 Subject: Adding upstream version 13.4. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/spi-spi-connect.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/src/sgml/html/spi-spi-connect.html (limited to 'doc/src/sgml/html/spi-spi-connect.html') diff --git a/doc/src/sgml/html/spi-spi-connect.html b/doc/src/sgml/html/spi-spi-connect.html new file mode 100644 index 0000000..5d54b99 --- /dev/null +++ b/doc/src/sgml/html/spi-spi-connect.html @@ -0,0 +1,29 @@ + +SPI_connect

SPI_connect

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

Synopsis

+int SPI_connect(void)
+
+int SPI_connect_ext(int options)
+

Description

+ 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). +

Return Value

SPI_OK_CONNECT

+ on success +

SPI_ERROR_CONNECT

+ on error +

\ No newline at end of file -- cgit v1.2.3