PostgreSQL Source Code
git master
|
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_attribute * | Form_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 | |
#define ATTRIBUTE_FIXED_PART_SIZE (offsetof(FormData_pg_attribute,attcollation) + sizeof(Oid)) |
Definition at line 201 of file pg_attribute.h.
typedef FormData_pg_attribute* Form_pg_attribute |
Definition at line 209 of file pg_attribute.h.
typedef struct FormExtraData_pg_attribute FormExtraData_pg_attribute |
char attgenerated BKI_DEFAULT | ( | '\0' | ) |
int32 typtypmod BKI_DEFAULT | ( | - | 1 | ) |
Oid typcollation BKI_DEFAULT | ( | 0 | ) |
bool typnotnull BKI_DEFAULT | ( | f | ) |
bool attislocal BKI_DEFAULT | ( | t | ) |
Oid attcollation BKI_LOOKUP_OPT | ( | pg_collation | ) |
Oid atttypid BKI_LOOKUP_OPT | ( | pg_type | ) |
CATALOG | ( | pg_attribute | , |
1249 | , | ||
AttributeRelationId | |||
) |
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 | |||
) |
char attalign |
Definition at line 109 of file pg_attribute.h.
Referenced by dumpCompositeType().
bool attbyval |
Definition at line 103 of file pg_attribute.h.
Referenced by expanded_record_set_tuple(), fetch_att(), and FreeTupleDesc().
int16 attlen |
Definition at line 59 of file pg_attribute.h.
Referenced by build_sorted_items(), DefineAttr(), dumpCompositeType(), fetch_att(), HeapDetermineColumnsInfo(), make_tuple_indirect(), nocache_index_getattr(), nocachegetattr(), store_att_byval(), 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 attnameAttNum(), binary_upgrade_set_missing_value(), build_attrmap_by_name(), BuildDescForRelation(), BuildDescFromLists(), check_selective_binary_conversion(), CheckAttributeNamesTypes(), CheckAttributeType(), checkRuleResultList(), composite_to_json(), composite_to_jsonb(), conversion_error_callback(), cookDefault(), CreateStatistics(), DefineAttr(), deparseAnalyzeSql(), DoCopyTo(), dumpCompositeType(), dumpCompositeTypeColComments(), dumpConstraint(), dumpTable(), errtablecol(), ExecWithoutOverlapsNotEmpty(), 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(), getIdentitySequence(), 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(), substitute_grouped_columns_mutator(), SysCacheGetAttrNotNull(), SystemAttributeByName(), transformColumnNameList(), transformIndexConstraint(), TypeGetTupleDesc(), and unknown_attribute().
int16 attndims |
Definition at line 97 of file pg_attribute.h.
bool attnotnull |
Definition at line 130 of file pg_attribute.h.
Referenced by ATExecCheckNotNull(), ATExecDropNotNull(), ATPrepSetNotNull(), DefineAttr(), and postgresImportForeignSchema().
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(), ATExecAddIdentity(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecColumnDefault(), ATExecCookedColumnDefault(), ATExecDropColumn(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropNotNull(), ATExecSetCompression(), ATExecSetExpression(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATPrepAlterColumnType(), autoinc(), BeginCopyFrom(), BeginCopyTo(), brin_deconstruct_tuple(), brincostestimate(), build_attnums_array(), build_sorted_items(), BuildDescForRelation(), BuildDescFromLists(), buildFreshLeafTuple(), buildGroupedVar(), 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(), entryIsMoveRight(), entryLocateEntry(), entryLocateLeafEntry(), errtablecol(), estimate_multivariate_ndistinct(), EventTriggerSQLDropAddObject(), examine_attribute(), ExecBuildProjectionInfo(), ExecBuildSlotPartitionKeyDescription(), ExecBuildUpdateProjection(), ExecEvalGroupingFunc(), ExecGrant_Attribute(), ExecInitIndexOnlyScan(), ExecInterpExpr(), ExecJustAssignVarImpl(), ExecJustAssignVarVirtImpl(), ExecJustVarImpl(), ExecJustVarVirtImpl(), expand_col_privileges(), expand_tuple(), expandRecordVariable(), expandRTE(), expr_setup_walker(), extractRemainingColumns(), fastgetattr(), fetch_remote_table_info(), find_hash_columns(), 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(), lo_manage(), logicalrep_rel_mark_updatable(), logicalrep_rel_open(), LookupTypeNameExtended(), make_inh_translation_list(), markTargetListOrigin(), 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_acl(), 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(), pub_collist_validate(), 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(), 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(), StoreIndexTuple(), substitute_grouped_columns_mutator(), transformAlterTableStmt(), transformAssignmentIndirection(), transformColumnNameList(), transformIndexConstraint(), ttdummy(), tts_buffer_heap_getsysattr(), tts_heap_getsysattr(), TupleDescGetDefault(), updateFuzzyAttrMatchState(), validateDomainCheckConstraint(), and validateDomainNotNullConstraint().
char attstorage |
Definition at line 117 of file pg_attribute.h.
Referenced by heap_toast_insert_or_update(), and make_tuple_indirect().
AttributeRelation_Rowtype_Id BKI_SCHEMA_MACRO |
Definition at line 37 of file pg_attribute.h.
FormData_pg_attribute |
Definition at line 193 of file pg_attribute.h.
Referenced by AddNewAttributeTuples(), attnumAttName(), attnumTypeId(), build_index_tlist(), ConstructTupleDescriptor(), CreateTemplateTupleDesc(), CreateTupleDescCopy(), CreateTupleDescCopyConstr(), expanded_record_lookup_field(), InsertPgAttributeTuples(), scanNSItemForColumn(), specialAttNum(), SPI_fname(), SPI_fnumber(), SystemAttributeByName(), and transformIndexConstraint().