PostgreSQL Source Code  git master
attnum.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InvalidAttrNumber   0
 
#define MaxAttrNumber   32767
 
#define AttributeNumberIsValid(attributeNumber)    ((bool) ((attributeNumber) != InvalidAttrNumber))
 
#define AttrNumberIsForUserDefinedAttr(attributeNumber)    ((bool) ((attributeNumber) > 0))
 
#define AttrNumberGetAttrOffset(attNum)
 
#define AttrOffsetGetAttrNumber(attributeOffset)    ((AttrNumber) (1 + (attributeOffset)))
 

Typedefs

typedef int16 AttrNumber
 

Macro Definition Documentation

◆ AttributeNumberIsValid

#define AttributeNumberIsValid (   attributeNumber)     ((bool) ((attributeNumber) != InvalidAttrNumber))

Definition at line 34 of file attnum.h.

◆ AttrNumberGetAttrOffset

#define AttrNumberGetAttrOffset (   attNum)
Value:
( \
AssertMacro(AttrNumberIsForUserDefinedAttr(attNum)), \
((attNum) - 1) \
)
#define AttrNumberIsForUserDefinedAttr(attributeNumber)
Definition: attnum.h:41

Definition at line 51 of file attnum.h.

◆ AttrNumberIsForUserDefinedAttr

#define AttrNumberIsForUserDefinedAttr (   attributeNumber)     ((bool) ((attributeNumber) > 0))

Definition at line 41 of file attnum.h.

◆ AttrOffsetGetAttrNumber

#define AttrOffsetGetAttrNumber (   attributeOffset)     ((AttrNumber) (1 + (attributeOffset)))

Definition at line 61 of file attnum.h.

◆ InvalidAttrNumber

#define InvalidAttrNumber   0

Definition at line 23 of file attnum.h.

◆ MaxAttrNumber

#define MaxAttrNumber   32767

Definition at line 24 of file attnum.h.

Typedef Documentation

◆ AttrNumber

typedef int16 AttrNumber

Definition at line 21 of file attnum.h.