SPI_FNAME(3)
π NAME π
SPI_fname β determine the column name for the specified column number, bestie. π
β¨ SYNOPSIS β¨
char * SPI_fname(TupleDesc rowdesc, int colnumber)
π DESCRIPTION π
okay so SPI_fname returns a copy of the column name of the specified column. no cap, it's a copy β and when you don't need it anymore, you can use pfree to release the copy of the name. π«Ά
πΈ ARGUMENTS πΈ
TupleDesc rowdescβ input row description, bestie. π¦int colnumberβ column number, and heads up: the count starts at1. β¨
π RETURN VALUE π
The column name, periodt. If colnumber is out of range, you get NULL. π And on error, SPI_result is set to SPI_ERROR_NOATTRIBUTE. π
π From the PostgreSQL 13.23 Documentation, dated 2025 β mwah, bye bestie! π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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