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))

◆ 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.

Referenced by ConstructTupleDescriptor(), and logicalrep_rel_open().

◆ AttrNumberIsForUserDefinedAttr

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

Definition at line 41 of file attnum.h.

Referenced by dependency_is_compatible_clause(), and logicalrep_rel_open().

◆ 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.

Referenced by adjust_view_column_set(), AlterObjectOwner_internal(), ATExecColumnDefault(), attnameAttNum(), BuildIndexValueDescription(), checkInsertTargets(), coerce_record_to_complex(), ComputeIndexAttrs(), convert_column_name(), CopyGetAttnums(), create_hashjoin_plan(), CreateTrigger(), dependencies_clauselist_selectivity(), do_analyze_rel(), dumpConstraint(), eval_const_expressions_mutator(), EventTriggerSQLDropAddObject(), examine_simple_variable(), ExecBuildSlotPartitionKeyDescription(), ExecCheckRTEPerms(), ExecCheckRTEPermsModified(), ExecEvalWholeRowVar(), ExecFindJunkAttributeInTlist(), ExecInitExprRec(), expand_all_col_privileges(), expand_col_privileges(), expandRecordVariable(), ExpandRowReference(), find_expr_references_walker(), fixup_inherited_columns(), fixup_whole_row_references(), flatten_join_alias_vars_mutator(), get_attnum(), get_name_for_var_field(), get_object_address_attrdef(), get_object_address_attribute(), get_object_namespace(), get_relname_relid(), get_rte_attribute_name(), get_variable(), GetAttributeByName(), LookupTypeName(), makeWholeRowVar(), markRTEForSelectPriv(), markTargetListOrigin(), ParseComplexProjection(), pg_event_trigger_ddl_commands(), pg_get_serial_sequence(), pg_identify_object(), postgresPlanDirectModify(), postgresPlanForeignModify(), ProcedureCreate(), process_owned_by(), pullup_replace_vars_callback(), ReplaceVarsFromTargetList_callback(), scanRTEForColumn(), searchRangeTableForCol(), set_baserel_partition_key_exprs(), specialAttNum(), transformAlterTableStmt(), transformAssignmentIndirection(), transformOnConflictClause(), transformUpdateTargetList(), translate_col_privs(), unknown_attribute(), and updateFuzzyAttrMatchState().

◆ MaxAttrNumber

#define MaxAttrNumber   32767

Definition at line 24 of file attnum.h.

Referenced by addRangeTableEntryForJoin().

Typedef Documentation

◆ AttrNumber

Definition at line 21 of file attnum.h.