SPI_EXEC(3)
π NAME π
okay so welcome to the SPI_EXEC(3) page from the PostgreSQL 17.11 docs, bestie! π
SPI_exec β execute a read/write command. thatβs the whole vibe: it runs a command, and itβs the read/write one. periodt.
β¨ SYNOPSIS β¨
int SPI_exec(const char * command, long count)
π DESCRIPTION π
SPI_exec is literally the same as SPI_execute, with one iconic twist: SPI_executeβs read_only parameter is always taken as false. so yeah, no read-only era here β itβs giving read/write main character energy. π
πΈ ARGUMENTS πΈ
const char * commandβ the string containing the command to execute. this is the actual thing you want to run, bestie.long countβ the maximum number of rows to return, or0for no limit. zero means no cap, fr fr. π«Ά
π¦ RETURN VALUE π¦
See SPI_execute. thatβs where the return-value tea lives, so go peek there. no cap. β¨
xoxo, PostgreSQL 17.11, 2026 π
π¦ 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