PostgreSQL Source Code  git master
pg_attribute.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_attribute_d.h"
Include dependency graph for pg_attribute.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FormExtraData_pg_attribute
 

Macros

#define ATTRIBUTE_FIXED_PART_SIZE    (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid))
 

Typedefs

typedef FormData_pg_attributeForm_pg_attribute
 
typedef struct FormExtraData_pg_attribute FormExtraData_pg_attribute
 

Functions

 CATALOG (pg_attribute, 1249, AttributeRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(75
 
Oid atttypid BKI_LOOKUP_OPT (pg_type)
 
int32 attcacheoff BKI_DEFAULT (-1)
 
char attcompression BKI_DEFAULT ('\0')
 
bool atthasdef BKI_DEFAULT (f)
 
bool attislocal BKI_DEFAULT (t)
 
int16 attinhcount BKI_DEFAULT (0)
 
Oid attcollation BKI_LOOKUP_OPT (pg_collation)
 
 DECLARE_UNIQUE_INDEX (pg_attribute_relid_attnam_index, 2658, AttributeRelidNameIndexId, pg_attribute, btree(attrelid oid_ops, attname name_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_attribute_relid_attnum_index, 2659, AttributeRelidNumIndexId, pg_attribute, btree(attrelid oid_ops, attnum int2_ops))
 
 MAKE_SYSCACHE (ATTNAME, pg_attribute_relid_attnam_index, 32)
 
 MAKE_SYSCACHE (ATTNUM, pg_attribute_relid_attnum_index, 128)
 

Variables

AttributeRelation_Rowtype_Id BKI_SCHEMA_MACRO
 
NameData attname
 
int16 attlen
 
int16 attnum
 
int16 attndims
 
bool attbyval
 
char attalign
 
char attstorage
 
bool attnotnull
 
 FormData_pg_attribute
 

Macro Definition Documentation

◆ ATTRIBUTE_FIXED_PART_SIZE

#define ATTRIBUTE_FIXED_PART_SIZE    (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid))

Definition at line 201 of file pg_attribute.h.

Typedef Documentation

◆ Form_pg_attribute

Definition at line 209 of file pg_attribute.h.

◆ FormExtraData_pg_attribute

Function Documentation

◆ BKI_DEFAULT() [1/5]

char attgenerated BKI_DEFAULT ( '\0'  )

◆ BKI_DEFAULT() [2/5]

int32 typtypmod BKI_DEFAULT ( 1)

◆ BKI_DEFAULT() [3/5]

Oid typcollation BKI_DEFAULT ( )

◆ BKI_DEFAULT() [4/5]

bool typnotnull BKI_DEFAULT ( )

◆ BKI_DEFAULT() [5/5]

bool attislocal BKI_DEFAULT ( )

◆ BKI_LOOKUP_OPT() [1/2]

Oid attcollation BKI_LOOKUP_OPT ( pg_collation  )

◆ BKI_LOOKUP_OPT() [2/2]

Oid atttypid BKI_LOOKUP_OPT ( pg_type  )

◆ CATALOG()

CATALOG ( pg_attribute  ,
1249  ,
AttributeRelationId   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_attribute_relid_attnam_index  ,
2658  ,
AttributeRelidNameIndexId  ,
pg_attribute  ,
btree(attrelid oid_ops, attname name_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_attribute_relid_attnum_index  ,
2659  ,
AttributeRelidNumIndexId  ,
pg_attribute  ,
btree(attrelid oid_ops, attnum int2_ops)   
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( ATTNAME  ,
pg_attribute_relid_attnam_index  ,
32   
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( ATTNUM  ,
pg_attribute_relid_attnum_index  ,
128   
)

Variable Documentation

◆ attalign

char attalign

Definition at line 109 of file pg_attribute.h.

Referenced by dumpCompositeType().

◆ attbyval

bool attbyval

Definition at line 103 of file pg_attribute.h.

Referenced by expanded_record_set_tuple(), fetch_att(), and FreeTupleDesc().

◆ attlen

◆ attname

NameData attname

Definition at line 41 of file pg_attribute.h.

Referenced by attnameAttNum(), binary_upgrade_set_missing_value(), build_attrmap_by_name(), BuildDescForRelation(), BuildDescFromLists(), check_selective_binary_conversion(), check_ungrouped_columns_walker(), CheckAttributeNamesTypes(), CheckAttributeType(), checkRuleResultList(), composite_to_json(), composite_to_jsonb(), conversion_error_callback(), cookDefault(), CreateStatistics(), DefineAttr(), deparseAnalyzeSql(), DoCopyTo(), dropconstraint_internal(), dumpCompositeType(), dumpCompositeTypeColComments(), dumpConstraint(), dumpTable(), errtablecol(), expand_single_inheritance_child(), fixup_inherited_columns(), generateClonedIndexStmt(), get_attnum(), get_file_fdw_attribute_options(), get_from_clause_coldeflist(), get_name_for_var_field(), get_object_address_attrdef(), get_object_address_attribute(), get_simple_values_rte(), get_target_list(), get_variable(), GetAttributeByName(), getObjectDescription(), logicalrep_rel_att_by_name(), make_inh_translation_list(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_statisticsobj_worker(), pg_get_triggerdef_worker(), pg_nextoid(), plperl_hash_from_tuple(), pltcl_build_tuple_argument(), pltcl_set_tuple_values(), postgresImportForeignSchema(), print_expr(), ri_Check_Pk_Match(), RI_FKey_cascade_del(), RI_FKey_cascade_upd(), RI_FKey_check(), ri_restrict(), ri_set(), SearchSysCacheAttName(), SearchSysCacheCopyAttName(), SearchSysCacheExistsAttName(), SetAttrMissing(), specialAttNum(), SysCacheGetAttrNotNull(), SystemAttributeByName(), transformColumnNameList(), transformIndexConstraint(), TypeGetTupleDesc(), and unknown_attribute().

◆ attndims

int16 attndims

Definition at line 97 of file pg_attribute.h.

◆ attnotnull

bool attnotnull

Definition at line 130 of file pg_attribute.h.

Referenced by ATExecDropNotNull(), DefineAttr(), and postgresImportForeignSchema().

◆ attnum

int16 attnum

Definition at line 74 of file pg_attribute.h.

Referenced by _bt_keep_natts(), _bt_keep_natts_fast(), add_column_collation_dependency(), add_column_datatype_dependency(), addItemPointersToLeafTuple(), AddRelationNotNullConstraints(), AdjustNotNullInheritance(), AdjustNotNullInheritance1(), AlterDomainNotNull(), AlterPublicationTables(), ATExecAddIdentity(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecColumnDefault(), ATExecCookedColumnDefault(), ATExecDropColumn(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropNotNull(), ATExecSetAttNotNull(), ATExecSetCompression(), ATExecSetExpression(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATPrepAlterColumnType(), autoinc(), BeginCopyFrom(), BeginCopyTo(), brin_deconstruct_tuple(), brincostestimate(), build_attnums_array(), build_sorted_items(), BuildDescForRelation(), BuildDescFromLists(), buildFreshLeafTuple(), BuildIndexValueDescription(), CatCacheCopyKeys(), CatCacheFreeKeys(), check_for_column_name_collision(), check_nested_generated_walker(), check_relation_privileges(), check_selective_binary_conversion(), CheckExprStillValid(), CheckVarSlotCompatibility(), clauselist_apply_dependencies(), collectMatchBitmap(), column_in_column_list(), column_privilege_check(), compute_index_stats(), contain_invalid_rfcolumn_walker(), convert_column_name(), convert_prep_stmt_params(), CopyGetAttnums(), CopyOneRowTo(), count_rowexpr_columns(), create_foreign_modify(), CreateStatistics(), CreateTriggerFiringOn(), DefineAttr(), DefineRelation(), deparseDirectUpdateSql(), deparseInsertSql(), deparseUpdateSql(), dependencies_clauselist_selectivity(), dependency_is_compatible_clause(), dependency_is_fully_matched(), DoCopyTo(), dropconstraint_internal(), entryIsMoveRight(), entryLocateEntry(), entryLocateLeafEntry(), errtablecol(), estimate_multivariate_ndistinct(), EventTriggerSQLDropAddObject(), examine_attribute(), ExecBuildProjectionInfo(), ExecBuildSlotPartitionKeyDescription(), ExecBuildUpdateProjection(), ExecEvalGroupingFunc(), ExecGrant_Attribute(), ExecInterpExpr(), ExecJustAssignVarImpl(), ExecJustAssignVarVirtImpl(), ExecJustVarImpl(), ExecJustVarVirtImpl(), expand_col_privileges(), expand_tuple(), expandRecordVariable(), expandRTE(), expr_setup_walker(), extractRemainingColumns(), fastgetattr(), fetch_remote_table_info(), find_hash_columns(), findNotNullConstraint(), findNotNullConstraintAttnum(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), get_attavgwidth(), get_attgenerated(), get_attname(), get_attoptions(), get_attribute_options(), get_atttype(), get_atttypetypmodcoll(), get_file_fdw_attribute_options(), get_name_for_var_field(), get_object_address_attrdef(), get_object_address_attribute(), get_rte_attribute_is_dropped(), get_rte_attribute_name(), get_ts_parser_func(), get_ts_template_func(), get_variable(), GetAttrDefaultOid(), getDatumCopy(), GetForeignColumnOptions(), getIdentitySequence(), getmissingattr(), getOwnedSequences_internal(), ginbuild(), ginBuildCallback(), ginCompareEntries(), ginEntryInsert(), ginExtractEntries(), ginFillScanEntry(), ginFillScanKey(), GinFormTuple(), ginGetBAEntry(), ginHeapTupleBulkInsert(), ginHeapTupleFastCollect(), ginHeapTupleInsert(), ginInsertBAEntries(), ginInsertBAEntry(), ginInsertCleanup(), ginPrepareEntryScan(), ginVacuumEntryPage(), heap_attisnull(), heap_deform_tuple(), heap_getattr(), heap_getsysattr(), heap_modify_tuple_by_cols(), index_check_primary_key(), index_deform_tuple_internal(), index_getattr(), index_getprocid(), index_getprocinfo(), index_opclass_options(), insert_username(), intorel_startup(), is_usable_unique_index(), list_cookedconstr_attnum_cmp(), lo_manage(), logicalrep_rel_mark_updatable(), logicalrep_rel_open(), LookupTypeNameExtended(), make_inh_translation_list(), markTargetListOrigin(), MergeAttributes(), moddatetime(), NextCopyFrom(), NextCopyFromRawFields(), nocache_index_getattr(), nocachegetattr(), pg_aclmask(), pg_attribute_aclcheck(), pg_attribute_aclcheck_ext(), pg_attribute_aclmask(), pg_attribute_aclmask_ext(), pg_column_is_updatable(), pg_get_constraintdef_worker(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_serial_sequence(), pg_get_statisticsobj_worker(), pg_ndistinct_out(), postgresBeginForeignInsert(), postgresPlanForeignModify(), prepare_projection_slot(), process_function_rte_ref(), process_owned_by(), pub_collist_contains_invalid_column(), publication_translate_columns(), rebuildInsertSql(), refresh_by_match_merge(), RelationBuildTupleDesc(), RelationClearMissing(), RememberAllDependentForRebuilding(), RemoveAttrDefault(), RemoveAttributeById(), RemoveStatistics(), renameatt(), renameatt_internal(), report_corruption_internal(), scanNSItemForColumn(), scanRTEForColumn(), searchRangeTableForCol(), SearchSysCacheAttNum(), SearchSysCacheCopyAttNum(), sepgsql_attribute_drop(), sepgsql_attribute_post_create(), sepgsql_attribute_relabel(), sepgsql_attribute_setattr(), set_attnotnull(), SetIndexStorageProperties(), slot_attisnull(), slot_compile_deform(), slot_deform_heap_tuple(), slot_fill_defaults(), slot_getattr(), slot_getsomeattrs(), slot_getsomeattrs_int(), slot_getsysattr(), SPI_modifytuple(), statext_is_compatible_clause(), statext_is_kind_built(), std_fetch_func(), StoreAttrDefault(), StoreRelNotNull(), transformAlterTableStmt(), transformAssignmentIndirection(), transformColumnNameList(), transformIndexConstraint(), transformTableLikeClause(), ttdummy(), tts_buffer_heap_getsysattr(), tts_heap_getsysattr(), TupleDescGetDefault(), updateFuzzyAttrMatchState(), and validateDomainConstraint().

◆ attstorage

char attstorage

Definition at line 117 of file pg_attribute.h.

Referenced by heap_toast_insert_or_update().

◆ BKI_SCHEMA_MACRO

AttributeRelation_Rowtype_Id BKI_SCHEMA_MACRO
Initial value:
{
Oid attrelid BKI_LOOKUP(pg_class)
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
unsigned int Oid
Definition: postgres_ext.h:31

Definition at line 37 of file pg_attribute.h.

◆ FormData_pg_attribute