SPI_EXEC(3)
π SPI_EXEC(3) β like, the whole entire manual page, bestie π
okay so this is the page for SPI_exec from the PostgreSQL 15.19 Documentation, and honestly? it's a short one but it eats. let's get into it β¨
πΈ NAME πΈ
SPI_exec β execute a read/write command π«Ά
like, yes, that's the whole vibe. read and write. she does both, no cap.
β¨ SYNOPSIS β¨
int SPI_exec(const char * command, long count)
that's it. that's the whole signature. gorgeous. iconic. no notes π
π¦ DESCRIPTION π¦
so SPI_exec is literally the same as SPI_execute, except β and this is the key part, bestie, don't miss it β the latter's read_only parameter is always taken as false. like, always. you don't get to pick. it's giving "she has one setting and that setting is write" π₯
so if you were hoping for a read-only moment? not here. that's SPI_execute's whole thing. go talk to her. SPI_exec said i'm built different π
π ARGUMENTS π
const char * commandβ a string containing the command to execute. yes, the actual command. that's the whole thing. put the command in the string πlong countβ the maximum number of rows to return, or0for no limit. so if you want everything, you pass0and she'll simply give you the whole buffet π
β RETURN VALUE β
see SPI_execute. that's it. that's the section. she's pointing you at her sister for the details, and honestly? respect. iykyk π€·ββοΈ
ngl this one is short but every single word matters, so don't skim it just because it's cute.read_onlyisfalse,countof0means no limit, andSPI_executehas the return value tea β
okay that's the page!! stay hydrated, read your manpages, and remember: SPI_exec writes, SPI_execute lets you choose π
πΈππ this has been SPI_EXEC(3) from PostgreSQL 15.19, dated 2026 β mwah, luv u, bye bestie ππ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15-docs 15.19-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