attnum.h
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· C头文件 代码 · 共 64 行
H
64 行
/*------------------------------------------------------------------------- * * attnum.h * POSTGRES attribute number definitions. * * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/access/attnum.h,v 1.22 2006/03/05 15:58:53 momjian Exp $ * *------------------------------------------------------------------------- */#ifndef ATTNUM_H#define ATTNUM_H/* * user defined attribute numbers start at 1. -ay 2/95 */typedef int16 AttrNumber;#define InvalidAttrNumber 0/* ---------------- * support macros * ---------------- *//* * AttributeNumberIsValid * True iff the attribute number is valid. */#define AttributeNumberIsValid(attributeNumber) \ ((bool) ((attributeNumber) != InvalidAttrNumber))/* * AttrNumberIsForUserDefinedAttr * True iff the attribute number corresponds to an user defined attribute. */#define AttrNumberIsForUserDefinedAttr(attributeNumber) \ ((bool) ((attributeNumber) > 0))/* * AttrNumberGetAttrOffset * Returns the attribute offset for an attribute number. * * Note: * Assumes the attribute number is for an user defined attribute. */#define AttrNumberGetAttrOffset(attNum) \( \ AssertMacro(AttrNumberIsForUserDefinedAttr(attNum)), \ ((attNum) - 1) \)/* * AttributeOffsetGetAttributeNumber * Returns the attribute number for an attribute offset. */#define AttrOffsetGetAttrNumber(attributeOffset) \ ((AttrNumber) (1 + (attributeOffset)))#endif /* ATTNUM_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?