SPI_GETTYPEID(3)

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

✨ SPI_GETTYPEID(3) ✨

okay bestie, you're looking at SPI_GETTYPEID(3) from the PostgreSQL 13.23 Documentation πŸ’– this page is short, iconic, and here to answer one very specific question: what's the data type OID of this column? periodt.


🌸 NAME 🌸

SPI_gettypeid β€” return the data type OID of the specified column


πŸ’… SYNOPSIS πŸ’…

Oid SPI_gettypeid(TupleDesc rowdesc, int colnumber)

πŸ¦‹ DESCRIPTION πŸ¦‹

SPI_gettypeid returns the OID of the data type of the specified column. that's it, that's the whole vibe πŸ’…βœ¨


πŸŽ€ ARGUMENTS πŸŽ€

  • TupleDesc rowdesc β€” input row description
  • int colnumber β€” column number (count starts at 1)

πŸ‘‘ RETURN VALUE πŸ‘‘

The OID of the data type of the specified column, or InvalidOid on error. On error, SPI_result is set to SPI_ERROR_NOATTRIBUTE 🫢


β€” SPI_GETTYPEID(3) is from PostgreSQL 13.23, dated 2025. mwah, bye bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from