PostgreSQL Source Code git master
Loading...
Searching...
No Matches
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
 
const 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
 
voidrd_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 addRangeTableEntry(), addRangeTableEntryForRelation(), AddRelationNewConstraints(), afterTriggerInvokeEvents(), AllocateRelationDesc(), AppendAttributeTuples(), ATExecReplicaIdentity(), ATExecSetExpression(), AttrDefaultFetch(), autoinc(), boot_openrel(), btestimateparallelscan(), build_column_default(), build_index_tlist(), build_physical_tlist(), check_foreign_key(), check_primary_key(), check_toast_tuple(), CheckIndexCompatible(), checkInsertTargets(), CheckNNConstraintFetch(), CloneRowTriggersToPartition(), ConversionCreate(), CopyFrom(), CreateForeignDataWrapper(), CreateForeignServer(), CreateOpFamily(), CreateTableSpace(), CreateUserMapping(), database_to_xmlschema_internal(), DefineOpClass(), DefineVirtualRelation(), DetachPartitionFinalize(), ENRMetadataGetTupDesc(), ExecInitIndexOnlyScan(), ExecInitModifyTable(), ExecRelCheck(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), expand_insert_targetlist(), expandRelation(), formrdesc(), get_pkey_attnames(), get_rel_data_width(), get_relation_constraints(), get_relation_notnullatts(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_tuple_of_interest(), gistCompressValues(), gistFetchTuple(), heap_toast_delete(), heap_toast_insert_or_update(), heapam_relation_needs_toast_table(), insert_username(), InsertExtensionTuple(), InsertOneNull(), InsertOneValue(), inv_truncate(), inv_write(), lo_manage(), load_relcache_init_file(), moddatetime(), PartConstraintImpliedByRelConstraint(), pub_contains_invalid_column(), RelationBuildLocalRelation(), RelationBuildPartitionKey(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationDestroyRelation(), RelationRebuildRelation(), schema_to_xmlschema_internal(), SPI_modifytuple(), storeOperators(), storeProcedures(), table_to_xml_and_xmlschema(), table_to_xmlschema(), toast_delete_external(), transformIndexConstraint(), triggered_change_notification(), tsvector_update_trigger(), 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

bool RelationData::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 AcquireRewriteLocks(), addFkConstraint(), addFkRecurseReferencing(), addRangeTableEntry(), addRangeTableEntryForRelation(), afterTriggerInvokeEvents(), AfterTriggerSaveEvent(), AllocateRelationDesc(), AlterTableNamespace(), AlterTableNamespaceInternal(), amcheck_index_mainfork_expected(), amcheck_lock_relation_and_check(), apply_handle_delete(), apply_handle_delete_internal(), apply_handle_insert(), apply_handle_truncate(), apply_handle_tuple_routing(), apply_handle_update(), AssertHasSnapshotForToast(), ATAddForeignKeyConstraint(), ATCheckPartitionsNotInUse(), ATExecAddColumn(), ATExecAddIdentity(), ATExecAddIndexConstraint(), ATExecAddOf(), ATExecAlterConstraint(), ATExecAlterConstrDeferrability(), ATExecAlterConstrEnforceability(), ATExecAttachPartition(), ATExecClusterOn(), ATExecCmd(), ATExecDropColumn(), ATExecDropIdentity(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecReplicaIdentity(), ATExecSetAccessMethodNoStorage(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetTableSpace(), ATExecSetTableSpaceNoStorage(), ATExecSplitPartition(), ATGetQueueEntry(), ATPrepAddColumn(), ATPrepAlterColumnType(), ATPrepChangePersistence(), ATPrepCmd(), ATPrepDropColumn(), ATPrepSetAccessMethod(), ATRewriteTables(), ATSimplePermissions(), ATSimpleRecursion(), ATTypedTableRecursion(), BeginCopyTo(), BootstrapToastTable(), brin_desummarize_range(), brin_summarize_range(), CacheInvalidateRelcache(), calculate_indexes_size(), calculate_table_size(), check_relation_relkind(), check_relation_updatable(), check_tuple_attribute(), CheckCmdReplicaIdentity(), checkFkeyPermissions(), CheckNNConstraintFetch(), checkPartition(), CheckRelationTableSpaceMove(), CheckTableNotInUse(), CheckValidResultRel(), CheckValidRowMarkRel(), CloneFkReferencing(), cluster(), CommentObject(), CopyFrom(), create_edata_for_relation(), create_estate_for_relation(), create_toast_table(), CreateFakeRelcacheEntry(), CreateStatistics(), CreateTriggerFiringOn(), currtid_internal(), DefineIndex(), DefineRelation(), DefineVirtualRelation(), DetachPartitionFinalize(), do_analyze_rel(), DoCopy(), DoCopyTo(), dropconstraint_internal(), EnableDisableTrigger(), estimate_rel_size(), ExecConstraints(), ExecFindPartition(), ExecGetAncestorResultRels(), ExecInitMerge(), ExecInitModifyTable(), ExecInitPartitionInfo(), ExecModifyTable(), ExecRelCheck(), ExecSecLabelStmt(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), ExecuteTruncate(), ExecuteTruncateGuts(), expandTableLikeClause(), ExtractReplicaIdentity(), fill_seq_with_data(), find_composite_type_dependencies(), FindLogicalRepLocalIndex(), formrdesc(), generate_partition_qual(), generate_relation_name(), generateSerialExtraStmts(), get_raw_page_internal(), 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_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(), 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_checkable(), index_concurrently_build(), index_concurrently_create_copy(), index_copy_data(), index_create(), index_update_stats(), IndexSetParentIndex(), infer_arbiter_indexes(), is_publishable_relation(), IsSystemRelation(), load_relcache_init_file(), load_typcache_tupdesc(), LockViewRecurse(), logicalrep_rel_open(), logicalrep_write_attrs(), logicalrep_write_delete(), logicalrep_write_rel(), logicalrep_write_update(), LogicalRepSyncTableStart(), mark_index_clustered(), MergeAttributes(), MergeWithExistingConstraint(), needs_toast_table(), OpenTableList(), pg_freespace(), pg_prewarm(), pg_relpages_impl(), pgoutput_change(), pgoutput_truncate(), pgrowlocks(), pgstat_assoc_relation(), pgstat_copy_relation_stats(), pgstat_create_relation(), pgstat_drop_relation(), pgstat_heap(), pgstat_init_relation(), pgstat_relation(), pgstat_report_analyze(), pgstat_report_vacuum(), pgstattuple_approx_internal(), plan_create_index_workers(), postgresAcquireSampleRowsFunc(), postgresAnalyzeForeignTable(), postgresGetAnalyzeInfoForForeignTable(), PrepareSortSupportFromGistIndexRel(), PrepareSortSupportFromIndexRel(), preprocess_relation_rtes(), pub_contains_invalid_column(), pub_rf_contains_invalid_column(), PublicationAddTables(), QueuePartitionConstraintValidation(), read_stream_begin_relation(), ReadBuffer_common(), reindex_index(), reindex_relation(), ReindexRelationConcurrently(), relation_is_updatable(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationBuildPublicationDesc(), RelationBuildRuleLock(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationDestroyRelation(), RelationGetIndexList(), RelationGetNumberOfBlocksInFork(), RelationGetPartitionDesc(), RelationGetPartitionKey(), RelationGetPartitionQual(), RelationInitIndexAccessInfo(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationInitTableAccessMethod(), RelationParseRelOptions(), RelationRebuildRelation(), RelationReloadIndexInfo(), RelationReloadNailed(), RelationSetNewRelfilenumber(), removable_cutoff(), RemovePolicyById(), RemoveTriggerById(), ReorderBufferProcessTXN(), ReorderBufferToastReplace(), replorigin_create(), rewriteTargetView(), SetMatViewPopulatedState(), SetRelationTableSpace(), statatt_get_index_expr(), StoreAttrMissingVal(), StorePartitionBound(), StorePartitionKey(), StoreRelCheck(), table_block_relation_estimate_size(), table_slot_callbacks(), TargetPrivilegesCheck(), toast_save_datum(), transformAlterTableStmt(), transformIndexConstraint(), transformMergeStmt(), transformRuleStmt(), transformTableLikeClause(), TryReuseIndex(), tuple_data_split_internal(), tuplesort_begin_cluster(), vac_estimate_reltuples(), vacuum_get_cutoffs(), vacuum_rel(), validate_index(), validate_relation_kind(), validate_relation_kind(), validate_relation_kind(), verify_heapam(), 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

◆ rd_toastoid

Oid RelationData::rd_toastoid

Definition at line 251 of file rel.h.

Referenced by toast_save_datum().

◆ trigdesc


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