SPI_GETARGCOUNT(3)
π 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 bySPI_prepare). yes bestie, it's the plan you got back fromSPI_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
- opensuse-leap 16.0: postgresql16-docs 16.15-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