SPI_GETTYPEID(3)
π NAME π
okay so bestie, welcome to SPI_GETTYPEID(3) from the PostgreSQL 16.15 Documentation β this one is literally about SPI_gettypeid, the function that returns 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 serve: you give it a column, it hands back the data type's OID. no cap. π
π ARGUMENTS π
TupleDesc rowdescβ the input row description, aka the row descriptor you're passing in. π«Άint colnumberβ the column number. and yes, the count starts at1β not0, bestie. iykyk. π
π RETURN VALUE π
It returns the OID of the data type of the specified column, or InvalidOid on error. π
On error,SPI_resultis set toSPI_ERROR_NOATTRIBUTE. that's what gets set, fr fr. π©
mwah π β this has been SPI_GETTYPEID(3) from PostgreSQL 16.15, dated 2026. now go slay those columns, bestie. πππ
π¦ 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