| /*------------------------------------------------------------------------- | |
| * | |
| * attnum.h | |
| * POSTGRES attribute number definitions. | |
| * | |
| * | |
| * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/access/attnum.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * user defined attribute numbers start at 1. -ay 2/95 | |
| */ | |
| typedef int16 AttrNumber; | |
| /* ---------------- | |
| * support macros | |
| * ---------------- | |
| */ | |
| /* | |
| * AttributeNumberIsValid | |
| * True iff the attribute number is valid. | |
| */ | |
| /* | |
| * AttrNumberIsForUserDefinedAttr | |
| * True iff the attribute number corresponds to a user defined attribute. | |
| */ | |
| /* | |
| * AttrNumberGetAttrOffset | |
| * Returns the attribute offset for an attribute number. | |
| * | |
| * Note: | |
| * Assumes the attribute number is for a user defined attribute. | |
| */ | |
| /* | |
| * AttrOffsetGetAttrNumber | |
| * Returns the attribute number for an attribute offset. | |
| */ | |