SPI_CONNECT(3)
πΈ SPI_CONNECT(3) β connect a C function to the SPI manager π
manual page: SPI_CONNECT(3) β yes bestie, the manual name is folded in right here β¨
π NAME π
SPI_connect, SPI_connect_ext β connect a C function to the SPI manager, periodt.
β¨ SYNOPSIS β¨
int SPI_connect(void)
int SPI_connect_ext(int options)
π¦ DESCRIPTION π¦
okay so 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 β iykyk. No cap, thatβs the whole vibe.
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) are allowed. Otherwise, calling those functions will result in an immediate error. fr fr, that immediate error is not a vibe.
SPI_connect() is equivalent to SPI_connect_ext(0). literally the same energy π«Ά
π RETURN VALUE π
SPI_OK_CONNECTβ on success πSPI_ERROR_CONNECTβ on error π
vibe check passed = success, vibe check failed = error, iykyk
xoxo, from the PostgreSQL 17.11 documentation, dated 2026 β page SPI_CONNECT(3) π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms