SPI_GETTYPE(3)

✨ NAME ✨

Okay so welcome to the SPI_GETTYPE(3) page, bestie πŸ’–

SPI_gettype β€” return the data type name of the specified column 🌈


✨ SYNOPSIS ✨

char * SPI_gettype(TupleDesc rowdesc, int colnumber)

✨ DESCRIPTION ✨

SPI_gettype returns a copy of the data type name of the specified column. πŸŽ€

And when you're done with that copy of the name, you can use pfree to release it β€” no need to keep it around forever, babe. πŸ’…


✨ ARGUMENTS ✨

  • TupleDesc rowdesc β€” input row description πŸ¦‹
  • int colnumber β€” column number (count starts at 1) ⭐

✨ RETURN VALUE ✨

The data type name of the specified column, or NULL on error. 😭

SPI_result is set to SPI_ERROR_NOATTRIBUTE on error. πŸ’€


πŸ’– That's the whole page, bestie β€” brought to you by PostgreSQL 18.6, dated 2026, and filed under SPI_GETTYPE(3). periodt πŸ’