SPI_GETARGCOUNT(3)

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

πŸ’– SPI_getargcount πŸ’–

okay bestie, welcome to SPI_GETARGCOUNT(3) from the PostgreSQL 16.15 manual β€” section 3, we are so back 🫢


✨ NAME ✨

SPI_getargcount β€” return the number of arguments needed by a statement prepared by SPI_prepare πŸ’…

🌸 SYNOPSIS 🌸

int SPI_getargcount(SPIPlanPtr plan)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so SPI_getargcount returns the number of arguments needed to execute a statement prepared by SPI_prepare. that's the whole vibe ✨

πŸŽ€ ARGUMENTS πŸŽ€

  • SPIPlanPtr plan β€” prepared statement (returned by SPI_prepare). yes bestie, it's the plan you got back from SPI_prepare πŸ™ˆ

πŸ‘‘ RETURN VALUE πŸ‘‘

The count of expected arguments for the plan. If the plan is NULL or invalid, SPI_result is set to SPI_ERROR_ARGUMENT and -1 is returned. that's the tea, fr fr πŸ’€


✨ cute sign-off: PostgreSQL 16.15, dated 2026 β€” SPI_GETARGCOUNT(3), signing off πŸ’–

πŸ“¦ where this page comes from