mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
Add comments describing interface to heap_getattr().
This commit is contained in:
parent
6cfb12e0cf
commit
b36e3042e7
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.17 1996/12/04 03:05:55 bryanh Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.18 1996/12/09 01:22:17 bryanh Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* The old interface functions have been converted to macros
|
* The old interface functions have been converted to macros
|
||||||
@ -660,9 +660,18 @@ fastgetattr(HeapTuple tup,
|
|||||||
/* ----------------
|
/* ----------------
|
||||||
* heap_getattr
|
* heap_getattr
|
||||||
*
|
*
|
||||||
* returns an attribute from a heap tuple. uses
|
* Find a particular field in a row represented as a heap tuple.
|
||||||
* ----------------
|
* We return a pointer into that heap tuple, which points to the
|
||||||
*/
|
* first byte of the value of the field in question.
|
||||||
|
*
|
||||||
|
* If the field in question has a NULL value, we return a null
|
||||||
|
* pointer and return <*isnull> == true. Otherwise, we return
|
||||||
|
* <*isnull> == false.
|
||||||
|
*
|
||||||
|
* <tup> is the pointer to the heap tuple. <attnum> is the attribute
|
||||||
|
* number of the column (field) caller wants. <tupleDesc> is a
|
||||||
|
* pointer to the structure describing the row and all its fields.
|
||||||
|
* ---------------- */
|
||||||
char *
|
char *
|
||||||
heap_getattr(HeapTuple tup,
|
heap_getattr(HeapTuple tup,
|
||||||
Buffer b,
|
Buffer b,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user