SPI_GETARGTYPEID(3)
π SPI_GETARGTYPEID(3) π
okay so this is the SPI_GETARGTYPEID(3) page from the PostgreSQL 13.23 Documentation, and bestie, it's a tiny little icon. no cap. We're looking at one function and its whole vibe check. β¨
π NAME π
SPI_getargtypeid β return the data type OID for an argument of a statement prepared by SPI_prepare. π«Ά
πΈ SYNOPSIS πΈ
Oid SPI_getargtypeid(SPIPlanPtr plan, int argIndex)
π¦ DESCRIPTION π¦
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. literally zero-based indexing energy, iykyk. π
π ARGUMENTS π
SPIPlanPtr planβ prepared statement (returned bySPI_prepare). highkey important. β¨int argIndexβ zero based index of the argument. π
π₯ RETURN VALUE π₯
The type OID of the argument at the given index. π
β οΈ if the plan isNULLor invalid, orargIndexis less than0or not less than the number of arguments declared for the plan,SPI_resultis set toSPI_ERROR_ARGUMENTandInvalidOidis returned. no cap, that's the error path β lowkey dramatic but factual. π
okay that's the page, bestie β PostgreSQL 13.23, 2025, and the SPI_GETARGTYPEID(3) manual page signing off. mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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