PostgreSQL Source Code  git master
RelationData Struct Reference

#include <rel.h>

Data Fields

RelFileNode rd_node
 
struct SMgrRelationDatard_smgr
 
int rd_refcnt
 
BackendId rd_backend
 
bool rd_islocaltemp
 
bool rd_isnailed
 
bool rd_isvalid
 
bool rd_indexvalid
 
bool rd_statvalid
 
SubTransactionId rd_createSubid
 
SubTransactionId rd_newRelfilenodeSubid
 
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
 
struct PartitionKeyDatard_partkey
 
MemoryContext rd_partkeycxt
 
struct PartitionDescDatard_partdesc
 
MemoryContext rd_pdcxt
 
Listrd_partcheck
 
bool rd_partcheckvalid
 
MemoryContext rd_partcheckcxt
 
Listrd_indexlist
 
Oid rd_pkindex
 
Oid rd_replidindex
 
Listrd_statlist
 
Bitmapsetrd_indexattr
 
Bitmapsetrd_keyattr
 
Bitmapsetrd_pkattr
 
Bitmapsetrd_idattr
 
PublicationActionsrd_pubactions
 
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
 
FmgrInford_supportinfo
 
int16rd_indoption
 
Listrd_indexprs
 
Listrd_indpred
 
Oidrd_exclops
 
Oidrd_exclprocs
 
uint16rd_exclstrats
 
void * rd_amcache
 
Oidrd_indcollation
 
struct FdwRoutinerd_fdwroutine
 
Oid rd_toastoid
 
struct PgStat_TableStatuspgstat_info
 

Detailed Description

Definition at line 53 of file rel.h.

Field Documentation

◆ pgstat_info

◆ rd_amcache

◆ rd_amhandler

Oid RelationData::rd_amhandler

◆ rd_att

TupleDesc RelationData::rd_att

Definition at line 85 of file rel.h.

Referenced by AddNewRelationTuple(), addRangeTableEntry(), addRangeTableEntryForRelation(), AddRelationNewConstraints(), afterTriggerInvokeEvents(), AggregateCreate(), AllocateRelationDesc(), 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(), CheckConstraintFetch(), CheckIndexCompatible(), checkInsertTargets(), CloneRowTriggersToPartition(), ConversionCreate(), CopyFrom(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateOpFamily(), CreateStatistics(), CreateTableSpace(), CreateTrigger(), CreateUserMapping(), database_to_xmlschema_internal(), DefineOpClass(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DefineVirtualRelation(), do_analyze_rel(), ENRMetadataGetTupDesc(), examine_attribute(), ExecInitModifyTable(), ExecInsert(), ExecRelCheck(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), ExecUpdate(), expand_targetlist(), expandRelation(), find_composite_type_dependencies(), formrdesc(), gbt_var_penalty(), get_pkey_attnames(), get_rel_data_width(), get_relation_constraints(), get_rels_with_domain(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_tuple_of_interest(), gistFetchTuple(), gistFormTuple(), gistInitBuffering(), gistRelocateBuildBuffersOnSplit(), heap_create_with_catalog(), heapam_relation_needs_toast_table(), infer_collation_opclass_match(), initBloomState(), initGISTstate(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertOneNull(), InsertOneValue(), InsertRule(), intorel_startup(), inv_truncate(), inv_write(), lo_manage(), load_domaintype_info(), load_relcache_init_file(), MakeConfigurationMapping(), MergeWithExistingConstraint(), NamespaceCreate(), OperatorShellMake(), PartConstraintImpliedByRelConstraint(), pg_get_triggerdef_worker(), plperl_modify_tuple(), plperl_trigger_build_args(), recordMultipleDependencies(), refresh_by_match_merge(), RelationBuildLocalRelation(), RelationBuildPartitionKey(), RelationBuildTriggers(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationClearRelation(), RelationDestroyRelation(), RelationGetExclusionInfo(), rewriteTargetListIU(), rewriteValuesRTE(), ri_ReportViolation(), schema_to_xmlschema_internal(), shdepAddDependency(), spgGetCache(), SPI_modifytuple(), StoreAttrDefault(), storeOperators(), storeProcedures(), table_to_xml_and_xmlschema(), table_to_xmlschema(), toast_delete(), toast_fetch_datum(), toast_fetch_datum_slice(), toast_insert_or_update(), toast_save_datum(), transformAssignedExpr(), transformIndexConstraint(), transformUpdateTargetList(), triggered_change_notification(), tsvector_update_trigger(), TypeShellMake(), validate_pkattnums(), and write_relcache_init_file().

◆ rd_backend

◆ rd_createSubid

◆ 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_fkeylist

List* RelationData::rd_fkeylist

◆ rd_fkeyvalid

bool RelationData::rd_fkeyvalid

Definition at line 96 of file rel.h.

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

◆ rd_id

◆ rd_idattr

Bitmapset* RelationData::rd_idattr

◆ rd_indam

◆ rd_indcollation

◆ rd_index

◆ rd_indexattr

Bitmapset* RelationData::rd_indexattr

◆ rd_indexcxt

◆ rd_indexlist

List* RelationData::rd_indexlist

Definition at line 107 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_isvalid

◆ rd_keyattr

Bitmapset* RelationData::rd_keyattr

◆ rd_lockInfo

◆ rd_newRelfilenodeSubid

◆ rd_node

◆ rd_opcintype

◆ rd_opfamily

◆ rd_options

◆ rd_partcheck

List* RelationData::rd_partcheck

Definition at line 102 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 103 of file rel.h.

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

◆ rd_partdesc

◆ rd_partkey

◆ rd_partkeycxt

MemoryContext RelationData::rd_partkeycxt

◆ rd_pdcxt

◆ rd_pkattr

Bitmapset* RelationData::rd_pkattr

◆ rd_pkindex

Oid RelationData::rd_pkindex

◆ rd_pubactions

PublicationActions* RelationData::rd_pubactions

◆ rd_refcnt

◆ rd_rel

Form_pg_class RelationData::rd_rel

Definition at line 84 of file rel.h.

Referenced by acquire_inherited_sample_rows(), AcquireRewriteLocks(), addFkRecurseReferenced(), addFkRecurseReferencing(), AddNewRelationTuple(), addRangeTableEntry(), addRangeTableEntryForRelation(), afterTriggerInvokeEvents(), AfterTriggerSaveEvent(), AllocateRelationDesc(), AlterSequence(), AlterTableNamespace(), AlterTableNamespaceInternal(), analyze_rel(), ATAddForeignKeyConstraint(), ATExecAddColumn(), ATExecAddIndexConstraint(), ATExecAddInherit(), ATExecAddOf(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecClusterOn(), ATExecCmd(), ATExecDropColumn(), ATExecDropConstraint(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecReplicaIdentity(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetTableSpace(), ATExecSetTableSpaceNoStorage(), ATGetQueueEntry(), ATPrepAddColumn(), ATPrepAddInherit(), ATPrepAlterColumnType(), ATPrepChangePersistence(), ATPrepDropColumn(), ATPrepDropNotNull(), ATPrepSetNotNull(), ATPrepSetStatistics(), ATRewriteTables(), ATSimplePermissions(), ATSimpleRecursion(), AttachPartitionEnsureIndexes(), ATTypedTableRecursion(), BeginCopyTo(), BootstrapToastTable(), brin_desummarize_range(), brin_summarize_range(), bt_check_every_level(), btree_index_checkable(), BuildIndexInfo(), BuildOnConflictExcludedTargetlist(), BuildRelationExtStatistics(), BuildSpeculativeIndexInfo(), CacheInvalidateRelcache(), calculate_indexes_size(), calculate_table_size(), check_default_partition_contents(), check_of_type(), check_relation_relkind(), CheckCmdReplicaIdentity(), checkFkeyPermissions(), CheckTableNotInUse(), CheckValidResultRel(), CheckValidRowMarkRel(), CloneFkReferencing(), CloneForeignKeyConstraints(), cluster(), cluster_rel(), CommentObject(), copy_table_data(), CopyFrom(), CopyMultiInsertInfoInit(), create_estate_for_relation(), create_toast_table(), CreateFakeRelcacheEntry(), CreateInheritance(), CreateStatistics(), CreateTrigger(), currtid_byrelname(), currtid_byreloid(), DefineIndex(), DefineQueryRewrite(), DefineRelation(), DefineVirtualRelation(), do_analyze_rel(), EnableDisableTrigger(), estimate_rel_size(), EvalPlanQualFetchRowMarks(), ExecIndexBuildScanKeys(), ExecInitBitmapHeapScan(), ExecInitModifyTable(), ExecLockRows(), ExecModifyTable(), ExecRefreshMatView(), ExecSecLabelStmt(), ExecSimpleRelationInsert(), ExecSimpleRelationUpdate(), ExecuteTruncate(), ExecuteTruncateGuts(), expand_inherited_rtentry(), expand_partitioned_rtentry(), expand_single_inheritance_child(), ExtractReplicaIdentity(), find_composite_type_dependencies(), 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(), GetOldestXmin(), gin_clean_pending_list(), gistGetFakeLSN(), has_partition_attrs(), hashbuild(), heap_compute_xid_horizon_for_tuples(), heap_create(), heap_create_with_catalog(), heap_delete(), heap_drop_with_catalog(), heap_prepare_insert(), heap_sync(), 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_filenode(), index_build(), index_check_primary_key(), index_concurrently_create_copy(), index_copy_data(), index_create(), index_drop(), index_open(), IndexSetParentIndex(), init_sequence(), InitResultRelInfo(), InsertPgClassTuple(), is_publishable_relation(), is_usable_unique_index(), isQueryUsingTempRelation_walker(), IsSystemRelation(), lazy_scan_heap(), load_relcache_init_file(), load_typcache_tupdesc(), LockViewRecurse(), log_heap_update(), logical_heap_rewrite_flush_mappings(), logical_rewrite_log_mapping(), logicalrep_rel_open(), logicalrep_write_attrs(), logicalrep_write_delete(), logicalrep_write_insert(), logicalrep_write_rel(), logicalrep_write_update(), make_append_rel_info(), make_new_heap(), mark_index_clustered(), MergeAttributes(), MergeAttributesIntoExisting(), MergeConstraintsIntoExisting(), MergeWithExistingConstraint(), needs_toast_table(), pg_prewarm(), pgrowlocks(), pgstat_heap(), pgstat_initstats(), pgstat_relation(), pgstat_report_analyze(), pgstattuple_approx_internal(), plan_create_index_workers(), postgresAcquireSampleRowsFunc(), postgresAnalyzeForeignTable(), PredicateLockingNeededForRelation(), PrepareSortSupportFromIndexRel(), process_owned_by(), PublicationAddTables(), QueuePartitionConstraintValidation(), raw_heap_insert(), ReadBufferExtended(), rebuild_relation(), reindex_index(), reindex_relation(), ReindexIndex(), ReindexRelationConcurrently(), relation_is_updatable(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationBuildRuleLock(), RelationBuildTupleDesc(), RelationCacheInitializePhase3(), RelationClearRelation(), RelationDestroyRelation(), RelationGetFKeyList(), RelationGetIndexList(), RelationGetNumberOfBlocksInFork(), RelationGetPartitionQual(), RelationIdGetRelation(), RelationInitIndexAccessInfo(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationInitTableAccessMethod(), RelationParseRelOptions(), RelationReloadIndexInfo(), RelationReloadNailed(), RelationSetNewRelfilenode(), RemoveInheritance(), RemovePolicyById(), RemoveRoleFromObjectPolicy(), RemoveTriggerById(), renameatt_internal(), RenameRelationInternal(), ReorderBufferCommit(), ReorderBufferToastReplace(), ResetSequence(), rewrite_heap_tuple(), RewriteQuery(), rewriteTargetListIU(), rewriteTargetListUD(), rewriteTargetView(), rewriteValuesRTE(), ri_Check_Pk_Match(), RI_FKey_check(), RI_Initial_Check(), RI_PartitionRemove_Check(), ri_restrict(), ri_set(), satisfies_hash_partition(), SetMatViewPopulatedState(), StorePartitionKey(), StoreRelCheck(), table_block_relation_estimate_size(), table_open(), table_openrv(), table_openrv_extended(), table_slot_callbacks(), toast_delete(), toast_insert_or_update(), toast_save_datum(), transformAlterTableStmt(), transformIndexConstraint(), transformPartitionCmd(), transformRuleStmt(), transformTableLikeClause(), TryReuseIndex(), tuple_data_split_internal(), tuplesort_begin_cluster(), vac_estimate_reltuples(), vacuum_rel(), validate_index(), validateCheckConstraint(), validatePartitionedIndex(), and write_relcache_init_file().

◆ rd_replidindex

Oid RelationData::rd_replidindex

◆ rd_rsdesc

◆ rd_rules

◆ rd_rulescxt

MemoryContext RelationData::rd_rulescxt

◆ rd_smgr

◆ rd_statlist

List* RelationData::rd_statlist

Definition at line 112 of file rel.h.

Referenced by load_relcache_init_file(), and RelationGetStatExtList().

◆ rd_statvalid

bool RelationData::rd_statvalid

Definition at line 65 of file rel.h.

Referenced by load_relcache_init_file(), and RelationGetStatExtList().

◆ rd_support

◆ rd_supportinfo

FmgrInfo* RelationData::rd_supportinfo

Definition at line 169 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 141 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_compute_xid_horizon_for_tuples(), table_endscan(), table_finish_bulk_insert(), table_index_build_range_scan(), table_index_build_scan(), 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_needs_toast_table(), table_relation_nontransactional_truncate(), table_relation_set_new_filenode(), table_relation_size(), table_relation_vacuum(), table_rescan(), table_rescan_set_params(), 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_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 199 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: