SPI_GETARGTYPEID(3)
β¨ SPI_GETARGTYPEID(3) β the PostgreSQL 16.15 Documentation page, but make it bestie-coded β¨
Okay so this is the manual page for SPI_getargtypeid, and it's giving βtell me the data type OID for an argument of a statement prepared by SPI_prepareβ energy. π
πΈ NAME πΈ
SPI_getargtypeid β return the data type OID for an argument of a statement prepared by SPI_prepare. No cap, that's literally the whole vibe. π«Ά
π SYNOPSIS π
Oid SPI_getargtypeid(SPIPlanPtr plan, int argIndex)
π¦ DESCRIPTION π¦
So SPI_getargtypeid returns the Oid representing the type for the argIndex'th argument of a statement prepared by SPI_prepare. First argument is at index zero. Yes bestie, zero is the first one β iconic indexing behavior, honestly. β¨
π ARGUMENTS π
SPIPlanPtr planβ prepared statement (returned bySPI_prepare) πint argIndexβ zero based index of the argument π
π RETURN VALUE π
The type OID of the argument at the given index. π
If the plan is NULL or invalid, or argIndex is less than 0 or not less than the number of arguments declared for the plan, SPI_result is set to SPI_ERROR_ARGUMENT and InvalidOid is returned. π¨ Like, read that part twice, bestie β it's the important boundary-check tea. π
That's the whole page, fr fr π β source/version: PostgreSQL 16.15, date: 2026, manual page: SPI_GETARGTYPEID(3). Periodt. π
π¦ 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