SPI_EXEC(3)

πŸ“¦ version 17.11, in opensuse-leap 16.0

πŸ’– 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, or 0 for 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