| The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide
by The PostgreSQL Global Development Group Paperback (6"x9"), 478 pages ISBN 9781906966065 RRP £14.95 ($19.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
13.2.3 SPI_getvalue
Name
SPI_getvalue -- return the string value of the specified column
Synopsis
char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)
Description
SPI_getvalue returns the string representation
of the value of the specified column.
The result is returned in memory allocated using
palloc. (You can use
pfree to release the memory when you don't
need it anymore.)
Arguments
HeapTuplerow- input row to be examined
TupleDescrowdesc- input row description
intcolnumber- column number (count starts at 1)
Return Value
Column value, or NULL if the column is null,
colnumber is out of range
(SPI_result is set to
SPI_ERROR_NOATTRIBUTE), or no output function is
available (SPI_result is set to
SPI_ERROR_NOOUTFUNC).
| ISBN 9781906966065 | The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide | See the print edition |