SPI_GETTYPEID(3)
π NAME π
okay bestie, welcome to the SPI_GETTYPEID(3) page from the PostgreSQL 17.11 Documentation β¨ SPI_gettypeid β return the data type OID of the specified column. That's literally the whole assignment π
πΈ SYNOPSIS πΈ
Oid SPI_gettypeid(TupleDesc rowdesc, int colnumber)
π¦ DESCRIPTION π¦
okay so here's the tea: SPI_gettypeid returns the OID of the data type of the specified column. no cap, that's the whole function. iconic query energy π
π ARGUMENTS π
TupleDesc rowdescβ input row description. yes, it's the row desc you're feeding in π«Άint colnumberβ column number (count starts at 1). bestie, count starts at 1, noted πΈ
β 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. so if it's mad, you get InvalidOid, and SPI_result is set to SPI_ERROR_NOATTRIBUTE β fr fr, that's the error signal π
cute sign-off: this page is from PostgreSQL 17.11, dated 2026, and it's the SPI_GETTYPEID(3) manual page. slay, go call your OIDs bestie πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-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