SPI_GETVALUE(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the SPI_GETVALUE(3) manual page β€” this one is all about SPI_getvalue, the function that returns the string value of the specified column. slay. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)

🌸 DESCRIPTION 🌸

SPI_getvalue returns the string representation of the value of the specified column. That's the whole vibe, no cap.

The result comes back in memory allocated using palloc. (You can use pfree to release the memory when you don't need it anymore β€” very demure, very mindful. πŸ’…)

πŸŽ€ ARGUMENTS πŸŽ€

  • HeapTuple row β€” the input row to be examined.
  • TupleDesc rowdesc β€” the input row description.
  • int colnumber β€” the column number (count starts at 1).

πŸ‘‘ RETURN VALUE πŸ‘‘

You get the column value back β€” icon behavior β€” or NULL if the column is null, if colnumber is out of range (SPI_result is set to SPI_ERROR_NOATTRIBUTE), or if no output function is available (SPI_result is set to SPI_ERROR_NOOUTFUNC). Not me getting a whole error code for those cases. πŸ’€


with love and PostgreSQL 15.19 docs energy, your Unix bestie β€” dated 2026 🫢

πŸ“¦ where this page comes from