SPI_GETTYPE(3)
π SPI_GETTYPE(3) π
okay so bestie, we're in the PostgreSQL 16.15 Documentation, and this is the SPI_GETTYPE(3) page β lowkey an icon, honestly. Let's get into it. β¨
πΈ NAME πΈ
SPI_gettype β return the data type name of the specified column. periodt. π
π¦ SYNOPSIS π¦
char * SPI_gettype(TupleDesc rowdesc, int colnumber)
π DESCRIPTION π
SPI_gettype returns a copy of the data type name of the specified column. When you don't need that copy of the name anymore, you can use pfree to release it β very demure, very mindful, no hoarding the copy, bestie. π«Ά
π ARGUMENTS π
TupleDesc rowdescβ the input row description, as advertised. π«‘int colnumberβ the column number (count starts at1, yes bestie,1). π₯
π RETURN VALUE π
It gives you the data type name of the specified column, or NULL on error. π On error, SPI_result is set to SPI_ERROR_NOATTRIBUTE β that's the vibe-check-failed code, okay? π
mwah π β source/version is PostgreSQL 16.15, date is 2026, and the page is SPI_GETTYPE(3). slay, bye. π
π¦ 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