PostgreSQL Source Code  git master
RelationData Struct Reference

#include <rel.h>

Data Fields

RelFileLocator rd_locator
 
SMgrRelation rd_smgr
 
int rd_refcnt
 
ProcNumber rd_backend
 
bool rd_islocaltemp
 
bool rd_isnailed
 
bool rd_isvalid
 
bool rd_indexvalid
 
bool rd_statvalid
 
SubTransactionId rd_createSubid
 
SubTransactionId rd_newRelfilelocatorSubid
 
SubTransactionId rd_firstRelfilelocatorSubid
 
SubTransactionId rd_droppedSubid
 
Form_pg_class rd_rel
 
TupleDesc rd_att
 
Oid rd_id
 
LockInfoData rd_lockInfo
 
RuleLockrd_rules
 
MemoryContext rd_rulescxt
 
TriggerDesctrigdesc
 
struct RowSecurityDescrd_rsdesc
 
Listrd_fkeylist
 
bool rd_fkeyvalid
 
PartitionKey rd_partkey
 
MemoryContext rd_partkeycxt
 
PartitionDesc rd_partdesc
 
MemoryContext rd_pdcxt
 
PartitionDesc rd_partdesc_nodetached
 
MemoryContext rd_pddcxt
 
TransactionId rd_partdesc_nodetached_xmin
 
Listrd_partcheck
 
bool rd_partcheckvalid
 
MemoryContext rd_partcheckcxt
 
Listrd_indexlist
 
Oid rd_pkindex
 
bool rd_ispkdeferrable
 
Oid rd_replidindex
 
Listrd_statlist
 
bool rd_attrsvalid
 
Bitmapsetrd_keyattr
 
Bitmapsetrd_pkattr
 
Bitmapsetrd_idattr
 
Bitmapsetrd_hotblockingattr
 
Bitmapsetrd_summarizedattr
 
PublicationDescrd_pubdesc
 
byteard_options
 
Oid rd_amhandler
 
const struct TableAmRoutinerd_tableam
 
Form_pg_index rd_index
 
struct HeapTupleDatard_indextuple
 
MemoryContext rd_indexcxt
 
struct IndexAmRoutinerd_indam
 
Oidrd_opfamily
 
Oidrd_opcintype
 
RegProcedurerd_support
 
struct FmgrInford_supportinfo
 
int16rd_indoption
 
Listrd_indexprs
 
Listrd_indpred
 
Oidrd_exclops
 
Oidrd_exclprocs
 
uint16rd_exclstrats
 
Oidrd_indcollation
 
bytea ** rd_opcoptions
 
void * rd_amcache
 
struct FdwRoutinerd_fdwroutine
 
Oid rd_toastoid
 
bool pgstat_enabled
 
struct PgStat_TableStatuspgstat_info
 

Detailed Description

Definition at line 55 of file rel.h.

Field Documentation

◆ pgstat_enabled

bool RelationData::pgstat_enabled

Definition at line 253 of file rel.h.

Referenced by pgstat_assoc_relation(), and pgstat_init_relation().

◆ pgstat_info

◆ rd_amcache

◆ rd_amhandler

Oid RelationData::rd_amhandler

◆ rd_att

TupleDesc RelationData::rd_att

Definition at line 112 of file rel.h.

Referenced by AddNewRelationTuple(), addRangeTableEntry(), addRangeTableEntryForRelation(), AddRelationNewConstraints(), afterTriggerInvokeEvents(), AggregateCreate(), AllocateRelationDesc(), AppendAttributeTuples(), ATExecAddColumn(), ATExecReplicaIdentity(), attnameAttNum(), attnumAttName(), attnumCollationId(), attnumTypeId(), AttrDefaultFetch(), boot_openrel(), build_column_default(), build_index_tlist(), build_physical_tlist(), BuildOnConflictExcludedTargetlist(), check_foreign_key(), check_primary_key(), check_toast_tuple(), CheckConstraintFetch(), CheckIndexCompatible(), checkInsertTargets(), CloneRowTriggersToPartition(), ConversionCreate(), CopyFrom(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreateStatistics(), CreateTableSpace(), CreateTriggerFiringOn(), CreateUserMapping(), database_to_xmlschema_internal(), DefineOpClass(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DefineVirtualRelation(), DetachPartitionFinalize(), do_analyze_rel(), ENRMetadataGetTupDesc(), examine_attribute(), ExecInitModifyTable(), ExecInsert(), ExecRelCheck(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), ExecUpdateAct(), ExecUpdatePrepareSlot(), expand_insert_targetlist(), expandRelation(), formrdesc(), gbt_var_penalty(), get_pkey_attnames(), get_rel_data_width(), get_relation_constraints(), get_relation_info(), get_rels_with_domain(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_tuple_of_interest(), gistCompressValues(), gistFetchTuple(), heap_create_with_catalog(), heap_fetch_toast_slice(), heap_toast_delete(), heap_toast_insert_or_update(), heapam_relation_needs_toast_table(), infer_collation_opclass_match(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertOneNull(), InsertOneValue(), InsertRule(), inv_truncate(), inv_write(), lo_manage(), load_domaintype_info(), load_relcache_init_file(), MergeWithExistingConstraint(), NamespaceCreate(), OperatorShellMake(), PartConstraintImpliedByRelConstraint(), pg_get_triggerdef_worker(), plperl_modify_tuple(), plperl_trigger_build_args(), refresh_by_match_merge(), RelationBuildLocalRelation(), RelationBuildPartitionKey(), RelationBuildTriggers(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationClearRelation(), RelationDestroyRelation(), RelationGetExclusionInfo(), rewriteTargetListIU(), rewriteValuesRTE(), ri_ReportViolation(), schema_to_xmlschema_internal(), shdepAddDependency(), SPI_modifytuple(), StoreAttrDefault(), storeOperators(), storeProcedures(), table_to_xml_and_xmlschema(), table_to_xmlschema(), toast_delete_external(), toast_save_datum(), toast_tuple_cleanup(), toast_tuple_find_biggest_attribute(), toast_tuple_init(), transformAssignedExpr(), transformIndexConstraint(), triggered_change_notification(), tsvector_update_trigger(), TypeShellMake(), validate_pkattnums(), and write_relcache_init_file().

◆ rd_attrsvalid

bool RelationData::rd_attrsvalid

Definition at line 161 of file rel.h.

Referenced by load_relcache_init_file(), and RelationGetIndexAttrBitmap().

◆ rd_backend

◆ rd_createSubid

◆ rd_droppedSubid

◆ rd_exclops

Oid* RelationData::rd_exclops

◆ rd_exclprocs

Oid* RelationData::rd_exclprocs

◆ rd_exclstrats

uint16* RelationData::rd_exclstrats

◆ rd_fdwroutine

struct FdwRoutine* RelationData::rd_fdwroutine

◆ rd_firstRelfilelocatorSubid

◆ rd_fkeylist

List* RelationData::rd_fkeylist

◆ rd_fkeyvalid

bool RelationData::rd_fkeyvalid

Definition at line 123 of file rel.h.

Referenced by load_relcache_init_file(), RelationBuildDesc(), and RelationGetFKeyList().

◆ rd_hotblockingattr

Bitmapset* RelationData::rd_hotblockingattr

Definition at line 165 of file rel.h.

Referenced by RelationDestroyRelation(), and RelationGetIndexAttrBitmap().

◆ rd_id

◆ rd_idattr

◆ rd_indam

◆ rd_indcollation

◆ rd_index

◆ rd_indexcxt

◆ rd_indexlist

List* RelationData::rd_indexlist

Definition at line 152 of file rel.h.

Referenced by load_relcache_init_file(), RelationDestroyRelation(), and RelationGetIndexList().

◆ rd_indexprs

List* RelationData::rd_indexprs

◆ rd_indextuple

◆ rd_indexvalid

bool RelationData::rd_indexvalid

◆ rd_indoption

◆ rd_indpred

List* RelationData::rd_indpred

◆ rd_islocaltemp

◆ rd_isnailed

◆ rd_ispkdeferrable

bool RelationData::rd_ispkdeferrable

Definition at line 154 of file rel.h.

Referenced by RelationGetIndexList(), and RelationGetPrimaryKeyIndex().

◆ rd_isvalid

◆ rd_keyattr

Bitmapset* RelationData::rd_keyattr

◆ rd_locator

◆ rd_lockInfo

◆ rd_newRelfilelocatorSubid

◆ rd_opcintype

◆ rd_opcoptions

bytea** RelationData::rd_opcoptions

◆ rd_opfamily

◆ rd_options

◆ rd_partcheck

List* RelationData::rd_partcheck

Definition at line 147 of file rel.h.

Referenced by generate_partition_qual(), load_relcache_init_file(), and RelationBuildDesc().

◆ rd_partcheckcxt

MemoryContext RelationData::rd_partcheckcxt

◆ rd_partcheckvalid

bool RelationData::rd_partcheckvalid

Definition at line 148 of file rel.h.

Referenced by generate_partition_qual(), load_relcache_init_file(), and RelationBuildDesc().

◆ rd_partdesc

◆ rd_partdesc_nodetached

PartitionDesc RelationData::rd_partdesc_nodetached

◆ rd_partdesc_nodetached_xmin

TransactionId RelationData::rd_partdesc_nodetached_xmin

◆ rd_partkey

◆ rd_partkeycxt

MemoryContext RelationData::rd_partkeycxt

◆ rd_pdcxt

◆ rd_pddcxt

◆ rd_pkattr

Bitmapset* RelationData::rd_pkattr

◆ rd_pkindex

Oid RelationData::rd_pkindex

◆ rd_pubdesc

PublicationDesc* RelationData::rd_pubdesc

◆ rd_refcnt

◆ rd_rel

Form_pg_class RelationData::rd_rel

Definition at line 111 of file rel.h.

Referenced by acquire_inherited_sample_rows(), AcquireRewriteLocks(), add_row_identity_columns(), addFkRecurseReferenced(), addFkRecurseReferencing(), AddNewRelationTuple(), addRangeTableEntry(), addRangeTableEntryForRelation(), afterTriggerInvokeEvents(), AfterTriggerSaveEvent(), AllocateRelationDesc(), AlterSequence(), AlterTableNamespace(), AlterTableNamespaceInternal(), analyze_rel(), apply_handle_delete(), apply_handle_insert(), apply_handle_truncate(), apply_handle_tuple_routing(), apply_handle_update(), ATAddForeignKeyConstraint(), ATCheckPartitionsNotInUse(), ATExecAddColumn(), ATExecAddIdentity(), ATExecAddIndexConstraint(), ATExecAddInherit(), ATExecAddOf(), ATExecAlterConstraint(), ATExecAlterConstrRecurse(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecClusterOn(), ATExecCmd(), ATExecDropColumn(), ATExecDropIdentity(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecReplicaIdentity(), ATExecSetAccessMethodNoStorage(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetTableSpace(), ATExecSetTableSpaceNoStorage(), ATGetQueueEntry(), ATInheritAdjustNotNulls(), ATPrepAddColumn(), ATPrepAddInherit(), ATPrepAddPrimaryKey(), ATPrepAlterColumnType(), ATPrepChangePersistence(), ATPrepCmd(), ATPrepDropColumn(), ATPrepSetAccessMethod(), ATRewriteTables(), ATSimplePermissions(), ATSimpleRecursion(), AttachPartitionEnsureIndexes(), ATTypedTableRecursion(), BeginCopyTo(), BootstrapToastTable(), brin_desummarize_range(), brin_summarize_range(), bt_index_check_internal(), btree_index_checkable(), btree_index_mainfork_expected(), build_column_default(), BuildOnConflictExcludedTargetlist(), BuildRelationExtStatistics(), CacheInvalidateRelcache(), calculate_indexes_size(), calculate_table_size(), check_default_partition_contents(), check_of_type(), check_publication_add_relation(), check_relation_relkind(), check_relation_updatable(), check_tuple_attribute(), CheckCmdReplicaIdentity(), CheckConstraintFetch(), checkFkeyPermissions(), checkPartition(), CheckPubRelationColumnList(), CheckRelationTableSpaceMove(), CheckTableNotInUse(), CheckValidResultRel(), CheckValidRowMarkRel(), CloneFkReferencing(), CloneForeignKeyConstraints(), cluster(), cluster_rel(), CommentObject(), copy_table_data(), CopyFrom(), CopyMultiInsertInfoInit(), create_edata_for_relation(), create_estate_for_relation(), create_toast_table(), CreateFakeRelcacheEntry(), CreateInheritance(), CreateStatistics(), CreateTriggerFiringOn(), currtid_internal(), DefineIndex(), DefineQueryRewrite(), DefineRelation(), DefineVirtualRelation(), DetachPartitionFinalize(), do_analyze_rel(), dropconstraint_internal(), EnableDisableTrigger(), estimate_rel_size(), EvalPlanQualFetchRowMark(), ExecConstraints(), ExecFindPartition(), ExecGetAncestorResultRels(), ExecGetRootToChildMap(), ExecInitBitmapHeapScan(), ExecInitModifyTable(), ExecInsert(), ExecLockRows(), ExecModifyTable(), ExecRefreshMatView(), ExecRelCheck(), ExecSecLabelStmt(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), ExecUpdateAct(), ExecUpdatePrologue(), ExecuteTruncate(), ExecuteTruncateGuts(), expand_inherited_rtentry(), expand_partitioned_rtentry(), expand_single_inheritance_child(), expandTableLikeClause(), ExtendBufferedRelBy(), ExtendBufferedRelTo(), ExtractReplicaIdentity(), fill_seq_with_data(), find_composite_type_dependencies(), FindLogicalRepLocalIndex(), finish_heap_swap(), formrdesc(), generate_partition_qual(), generate_relation_name(), generateSerialExtraStmts(), get_raw_page_internal(), get_rel_from_relname(), get_relation_by_qualified_name(), get_relation_constraints(), get_relation_info(), get_rels_with_domain(), get_view_query(), GetStrictOldestNonRemovableTransactionId(), gin_clean_pending_list(), gistGetFakeLSN(), GlobalVisHorizonKindForRel(), has_partition_attrs(), heap_abort_speculative(), heap_create(), heap_create_with_catalog(), heap_delete(), heap_drop_with_catalog(), heap_force_common(), heap_index_delete_tuples(), heap_prepare_insert(), heap_toast_delete(), heap_toast_insert_or_update(), heap_truncate_check_FKs(), heap_truncate_one_rel(), heap_update(), heap_vacuum_rel(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_relation_copy_data(), heapam_relation_set_new_filelocator(), heapam_relation_toast_am(), index_build(), index_check_primary_key(), index_concurrently_build(), index_concurrently_create_copy(), index_copy_data(), index_create(), index_drop(), IndexSetParentIndex(), init_sequence(), InitResultRelInfo(), InsertPgClassTuple(), is_publishable_relation(), is_usable_unique_index(), isQueryUsingTempRelation_walker(), IsSystemRelation(), lazy_vacuum_all_indexes(), load_relcache_init_file(), load_typcache_tupdesc(), LockViewRecurse(), log_heap_update(), logicalrep_rel_open(), logicalrep_write_attrs(), logicalrep_write_delete(), logicalrep_write_rel(), logicalrep_write_update(), LogicalRepSyncTableStart(), make_append_rel_info(), make_new_heap(), mark_index_clustered(), MarkInheritDetached(), MergeAttributes(), MergeAttributesIntoExisting(), MergeConstraintsIntoExisting(), MergeWithExistingConstraint(), needs_toast_table(), OpenTableList(), pg_prewarm(), pg_relpages_impl(), pgoutput_change(), pgoutput_truncate(), pgstat_assoc_relation(), pgstat_copy_relation_stats(), pgstat_create_relation(), pgstat_drop_relation(), pgstat_heap(), pgstat_init_relation(), pgstat_relation(), pgstat_report_analyze(), pgstattuple_approx_internal(), PinBufferForBlock(), plan_create_index_workers(), postgresAcquireSampleRowsFunc(), postgresAnalyzeForeignTable(), postgresGetAnalyzeInfoForForeignTable(), PrepareSortSupportFromGistIndexRel(), PrepareSortSupportFromIndexRel(), process_owned_by(), pub_collist_contains_invalid_column(), pub_rf_contains_invalid_column(), PublicationAddTables(), QueuePartitionConstraintValidation(), rebuild_relation(), reindex_index(), reindex_relation(), ReindexRelationConcurrently(), relation_is_updatable(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationBuildPublicationDesc(), RelationBuildRuleLock(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationClearRelation(), RelationDestroyRelation(), RelationGetFKeyList(), RelationGetIndexList(), RelationGetNumberOfBlocksInFork(), RelationGetPartitionDesc(), RelationGetPartitionKey(), RelationGetPartitionQual(), RelationIdGetRelation(), RelationInitIndexAccessInfo(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationInitTableAccessMethod(), RelationParseRelOptions(), RelationReloadIndexInfo(), RelationReloadNailed(), RelationSetNewRelfilenumber(), RemoveInheritance(), RemovePolicyById(), RemoveTriggerById(), renameatt_internal(), RenameRelationInternal(), renametrig(), renametrig_partition(), ReorderBufferProcessTXN(), ReorderBufferToastReplace(), ResetSequence(), RewriteQuery(), rewriteTargetView(), rewriteValuesRTE(), ri_Check_Pk_Match(), RI_FKey_check(), RI_FKey_fk_upd_check_required(), RI_Initial_Check(), RI_PartitionRemove_Check(), ri_restrict(), ri_set(), SetAttrMissing(), SetMatViewPopulatedState(), SetRelationTableSpace(), StoreAttrDefault(), StorePartitionKey(), StoreRelCheck(), table_block_relation_estimate_size(), table_slot_callbacks(), TargetPrivilegesCheck(), toast_save_datum(), transformAlterTableStmt(), transformIndexConstraint(), transformMergeStmt(), transformPartitionCmd(), transformPartitionCmdForMerge(), transformPartitionCmdForSplit(), TransformPubWhereClauses(), transformRuleStmt(), transformTableLikeClause(), TryReuseIndex(), tuple_data_split_internal(), tuplesort_begin_cluster(), vac_estimate_reltuples(), vacuum_get_cutoffs(), vacuum_rel(), validate_index(), validate_relation_kind(), validatePartitionedIndex(), WaitReadBuffers(), and write_relcache_init_file().

◆ rd_replidindex

◆ rd_rsdesc

◆ rd_rules

◆ rd_rulescxt

MemoryContext RelationData::rd_rulescxt

◆ rd_smgr

◆ rd_statlist

List* RelationData::rd_statlist

Definition at line 158 of file rel.h.

Referenced by load_relcache_init_file(), RelationDestroyRelation(), and RelationGetStatExtList().

◆ rd_statvalid

bool RelationData::rd_statvalid

Definition at line 66 of file rel.h.

Referenced by load_relcache_init_file(), and RelationGetStatExtList().

◆ rd_summarizedattr

Bitmapset* RelationData::rd_summarizedattr

Definition at line 166 of file rel.h.

Referenced by RelationDestroyRelation(), and RelationGetIndexAttrBitmap().

◆ rd_support

◆ rd_supportinfo

struct FmgrInfo* RelationData::rd_supportinfo

Definition at line 210 of file rel.h.

Referenced by index_getprocinfo(), load_relcache_init_file(), and RelationInitIndexAccessInfo().

◆ rd_tableam

const struct TableAmRoutine* RelationData::rd_tableam

Definition at line 189 of file rel.h.

Referenced by formrdesc(), get_relation_info(), heap_getnext(), InitTableAmRoutine(), RelationCacheInitializePhase3(), table_beginscan(), table_beginscan_analyze(), table_beginscan_bm(), table_beginscan_catalog(), table_beginscan_parallel(), table_beginscan_sampling(), table_beginscan_strat(), table_beginscan_tid(), table_beginscan_tidrange(), table_endscan(), table_finish_bulk_insert(), table_index_build_range_scan(), table_index_build_scan(), table_index_delete_tuples(), table_index_fetch_begin(), table_index_fetch_end(), table_index_fetch_reset(), table_index_fetch_tuple(), table_index_validate_scan(), table_multi_insert(), table_parallelscan_estimate(), table_parallelscan_initialize(), table_parallelscan_reinitialize(), table_relation_copy_data(), table_relation_copy_for_cluster(), table_relation_estimate_size(), table_relation_fetch_toast_slice(), table_relation_needs_toast_table(), table_relation_nontransactional_truncate(), table_relation_set_new_filelocator(), table_relation_size(), table_relation_toast_am(), table_relation_vacuum(), table_rescan(), table_rescan_set_params(), table_rescan_tidrange(), table_scan_analyze_next_block(), table_scan_analyze_next_tuple(), table_scan_bitmap_next_block(), table_scan_bitmap_next_tuple(), table_scan_getnextslot(), table_scan_getnextslot_tidrange(), table_scan_sample_next_block(), table_scan_sample_next_tuple(), table_slot_callbacks(), table_tuple_complete_speculative(), table_tuple_delete(), table_tuple_fetch_row_version(), table_tuple_get_latest_tid(), table_tuple_insert(), table_tuple_insert_speculative(), table_tuple_lock(), table_tuple_satisfies_snapshot(), table_tuple_tid_valid(), and table_tuple_update().

◆ rd_toastoid

Oid RelationData::rd_toastoid

Definition at line 251 of file rel.h.

Referenced by copy_table_data(), and toast_save_datum().

◆ trigdesc


The documentation for this struct was generated from the following file: