SPI_GETBINVAL(3)

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

πŸŽ€ NAME πŸŽ€

okay bestie, this is the SPI_GETBINVAL(3) page πŸ’… and it's literally about SPI_getbinval β€” the function that returns the binary value of the specified column. slay.

✨ SYNOPSIS ✨

Datum SPI_getbinval(HeapTuple row, TupleDesc rowdesc, int colnumber,
                    bool * isnull)

πŸ’– DESCRIPTION πŸ’–

SPI_getbinval returns the value of the specified column in the internal form (as type Datum). periodt.

This function does not allocate new space for the datum. the way that matters: in the case of a pass-by-reference data type, the return value will be a pointer into the passed row. no cap. 🫢

🫢 ARGUMENTS 🫢

  • HeapTuple row β€” input row to be examined πŸ‘€
  • TupleDesc rowdesc β€” input row description πŸ“
  • int colnumber β€” column number (count starts at 1) πŸ”’
  • bool * isnull β€” flag for a null value in the column 🚩

πŸ”₯ RETURN VALUE πŸ”₯

The binary value of the column is returned. The variable pointed to by isnull is set to true if the column is null, else to false. πŸ’–

⚠️ on error: SPI_result is set to SPI_ERROR_NOATTRIBUTE. that's the error vibe check, bestie.

mwah πŸ’‹ β€” source/version: PostgreSQL 13.23 documentation; date: 2025.

πŸ“¦ where this page comes from