SPI_GETARGTYPEID(3)

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

πŸ‘‘ 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 by SPI_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 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. 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