PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | ATTRIBUTE_FIXED_PART_SIZE (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid)) |
#define | AttributeRelidNameIndexId 2658 |
#define | AttributeRelidNumIndexId 2659 |
Typedefs | |
typedef FormData_pg_attribute * | Form_pg_attribute |
Functions | |
CATALOG (pg_attribute, 1249, AttributeRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(75 | |
Oid atttypid | BKI_LOOKUP_OPT (pg_type) |
int32 attstattarget | BKI_DEFAULT (-1) |
bool atthasdef | BKI_DEFAULT (f) |
char attidentity | BKI_DEFAULT ('\0') |
bool attislocal | BKI_DEFAULT (t) |
int32 attinhcount | BKI_DEFAULT (0) |
Oid attcollation | BKI_LOOKUP_OPT (pg_collation) |
DECLARE_UNIQUE_INDEX (pg_attribute_relid_attnam_index, 2658, on pg_attribute using btree(attrelid oid_ops, attname name_ops)) | |
DECLARE_UNIQUE_INDEX_PKEY (pg_attribute_relid_attnum_index, 2659, on pg_attribute using btree(attrelid oid_ops, attnum int2_ops)) | |
Variables | |
AttributeRelation_Rowtype_Id | BKI_SCHEMA_MACRO |
NameData | attname |
int16 | attlen |
int16 | attnum |
int32 | attndims |
bool | attbyval |
char | attstorage |
char | attalign |
bool | attnotnull |
FormData_pg_attribute | |
#define ATTRIBUTE_FIXED_PART_SIZE (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid)) |
Definition at line 189 of file pg_attribute.h.
Referenced by AllocateAttribute(), boot_openrel(), BuildHardcodedDescriptor(), ConstructTupleDescriptor(), CreateTupleDesc(), DefineAttr(), examine_attribute(), formrdesc(), load_relcache_init_file(), RelationBuildTupleDesc(), TupleDescCopyEntry(), and write_relcache_init_file().
#define AttributeRelidNameIndexId 2658 |
Definition at line 200 of file pg_attribute.h.
#define AttributeRelidNumIndexId 2659 |
Definition at line 202 of file pg_attribute.h.
Referenced by change_owner_fix_column_acls(), DeleteAttributeTuples(), DeleteSystemAttributeTuples(), index_concurrently_swap(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationGetIndexAttOptions(), RemoveInheritance(), sepgsql_attribute_post_create(), and sepgsql_relation_post_create().
typedef FormData_pg_attribute* Form_pg_attribute |
Definition at line 197 of file pg_attribute.h.
int32 typtypmod BKI_DEFAULT | ( | - | 1 | ) |
bool typnotnull BKI_DEFAULT | ( | f | ) |
char attgenerated BKI_DEFAULT | ( | '\0' | ) |
bool attislocal BKI_DEFAULT | ( | t | ) |
Oid typcollation BKI_DEFAULT | ( | 0 | ) |
Oid atttypid BKI_LOOKUP_OPT | ( | pg_type | ) |
Oid attcollation BKI_LOOKUP_OPT | ( | pg_collation | ) |
CATALOG | ( | pg_attribute | , |
1249 | , | ||
AttributeRelationId | |||
) |
DECLARE_UNIQUE_INDEX | ( | pg_attribute_relid_attnam_index | , |
2658 | , | ||
on pg_attribute using | btreeattrelid oid_ops, attname name_ops | ||
) |
DECLARE_UNIQUE_INDEX_PKEY | ( | pg_attribute_relid_attnum_index | , |
2659 | , | ||
on pg_attribute using | btreeattrelid oid_ops, attnum int2_ops | ||
) |
char attalign |
Definition at line 126 of file pg_attribute.h.
Referenced by dumpCompositeType().
bool attbyval |
Definition at line 112 of file pg_attribute.h.
Referenced by expanded_record_set_tuple(), and FreeTupleDesc().
int16 attlen |
Definition at line 68 of file pg_attribute.h.
Referenced by build_sorted_items(), DefineAttr(), dumpCompositeType(), make_tuple_indirect(), nocache_index_getattr(), nocachegetattr(), toast_build_flattened_tuple(), toast_delete_external(), toast_flatten_tuple(), and toast_flatten_tuple_to_datum().
NameData attname |
Definition at line 41 of file pg_attribute.h.
Referenced by binary_upgrade_set_missing_value(), build_attrmap_by_name(), BuildDescForRelation(), BuildDescFromLists(), check_selective_binary_conversion(), check_ungrouped_columns_walker(), CheckAttributeNamesTypes(), checkRuleResultList(), composite_to_json(), composite_to_jsonb(), conversion_error_callback(), CreateStatistics(), DefineAttr(), deparseAnalyzeSql(), DoCopyTo(), dumpCompositeType(), dumpCompositeTypeColComments(), dumpConstraint(), dumpTable(), errtablecol(), exec_rt_fetch(), expand_single_inheritance_child(), fixup_inherited_columns(), generateClonedIndexStmt(), 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(), getObjectDescription(), 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(), transformColumnNameList(), transformIndexConstraint(), and TypeGetTupleDesc().
int32 attndims |
Definition at line 89 of file pg_attribute.h.
bool attnotnull |
Definition at line 129 of file pg_attribute.h.
Referenced by ATExecCheckNotNull(), ATExecDropNotNull(), ATExecSetNotNull(), ATPrepSetNotNull(), DefineAttr(), and postgresImportForeignSchema().
int16 attnum |
Definition at line 83 of file pg_attribute.h.
Referenced by _bt_keep_natts(), _bt_keep_natts_fast(), add_column_collation_dependency(), add_column_datatype_dependency(), addItemPointersToLeafTuple(), AlterDomainNotNull(), ATExecAddIdentity(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecColumnDefault(), ATExecDropColumn(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropNotNull(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATPrepAlterColumnType(), autoinc(), BeginCopyFrom(), BeginCopyTo(), brin_deconstruct_tuple(), brincostestimate(), BuildDescForRelation(), BuildDescFromLists(), BuildIndexValueDescription(), CatalogIndexInsert(), CatCacheCopyKeys(), CatCacheFreeKeys(), check_for_column_name_collision(), check_nested_generated_walker(), check_relation_privileges(), check_selective_binary_conversion(), CheckExprStillValid(), clauselist_apply_dependencies(), collectMatchBitmap(), compute_index_stats(), convert_column_name(), convert_prep_stmt_params(), CopyGetAttnums(), CopyOneRowTo(), count_rowexpr_columns(), create_foreign_modify(), CreateTrigger(), DefineAttr(), DefineRelation(), deparseDirectUpdateSql(), deparseInsertSql(), deparseUpdateSql(), dependencies_clauselist_selectivity(), dependency_is_fully_matched(), DoCopyTo(), entryIsMoveRight(), entryLocateEntry(), entryLocateLeafEntry(), estimate_multivariate_ndistinct(), EventTriggerSQLDropAddObject(), examine_attribute(), ExecBuildProjectionInfo(), ExecBuildSlotPartitionKeyDescription(), ExecEvalGroupingFunc(), ExecInterpExpr(), ExecJustAssignVarImpl(), ExecJustAssignVarVirtImpl(), ExecJustVarImpl(), ExecJustVarVirtImpl(), expand_col_privileges(), expand_tuple(), expandRecordVariable(), expandRTE(), extractRemainingColumns(), find_hash_columns(), flatten_join_alias_vars_mutator(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), get_attavgwidth(), get_attribute_options(), get_file_fdw_attribute_options(), get_last_attnums_walker(), get_name_for_var_field(), get_object_address_attrdef(), get_object_address_attribute(), get_variable(), ginbuild(), ginBuildCallback(), ginFillScanEntry(), ginFillScanKey(), ginInsertBAEntry(), ginInsertCleanup(), ginPrepareEntryScan(), ginVacuumEntryPage(), heap_deform_tuple(), heap_modify_tuple_by_cols(), HeapDetermineModifiedColumns(), heapgettup_pagemode(), index_check_primary_key(), index_deform_tuple(), insert_username(), intorel_startup(), is_usable_unique_index(), lo_manage(), logicalrep_rel_open(), LookupTypeNameExtended(), make_inh_translation_list(), markTargetListOrigin(), moddatetime(), NextCopyFrom(), nocache_index_getattr(), nocachegetattr(), pg_column_is_updatable(), pg_get_indexdef_worker(), pg_get_partkeydef_worker(), pg_get_serial_sequence(), pg_get_statisticsobj_worker(), postgresBeginForeignInsert(), postgresPlanForeignModify(), prepare_projection_slot(), process_owned_by(), refresh_by_match_merge(), RelationBuildTupleDesc(), RelationClearMissing(), RelationGetIndexRawAttOptions(), renameatt(), renameatt_internal(), scanNSItemForColumn(), scanRTEForColumn(), sepgsql_attribute_drop(), sepgsql_attribute_post_create(), sepgsql_attribute_relabel(), sepgsql_attribute_setattr(), slot_compile_deform(), slot_deform_heap_tuple(), slot_fill_defaults(), slot_getsomeattrs_int(), statext_is_compatible_clause(), statext_is_kind_built(), std_fetch_func(), StoreAttrDefault(), transformAlterTableStmt(), transformAssignmentIndirection(), transformColumnNameList(), transformIndexConstraint(), ttdummy(), updateFuzzyAttrMatchState(), and validateDomainConstraint().
char attstorage |
Definition at line 120 of file pg_attribute.h.
Referenced by heap_toast_insert_or_update().
AttributeRelation_Rowtype_Id BKI_SCHEMA_MACRO |
Definition at line 38 of file pg_attribute.h.
FormData_pg_attribute |
Definition at line 181 of file pg_attribute.h.
Referenced by AddNewAttributeTuples(), ATExecAddColumn(), attnumAttName(), attnumTypeId(), build_index_tlist(), ConstructTupleDescriptor(), CreateTemplateTupleDesc(), CreateTupleDescCopy(), CreateTupleDescCopyConstr(), expanded_record_lookup_field(), InsertPgAttributeTuples(), scanNSItemForColumn(), specialAttNum(), SPI_fname(), SPI_fnumber(), SystemAttributeByName(), SystemAttributeDefinition(), and transformIndexConstraint().