SPI_GETTYPE(3)

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

πŸ’… 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 at 1, 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