PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | PartitionDescData |
Typedefs | |
typedef struct PartitionDescData | PartitionDescData |
Functions | |
PartitionDesc | RelationGetPartitionDesc (Relation rel, bool omit_detached) |
PartitionDirectory | CreatePartitionDirectory (MemoryContext mcxt, bool omit_detached) |
PartitionDesc | PartitionDirectoryLookup (PartitionDirectory, Relation) |
void | DestroyPartitionDirectory (PartitionDirectory pdir) |
Oid | get_default_oid_from_partdesc (PartitionDesc partdesc) |
typedef struct PartitionDescData PartitionDescData |
PartitionDirectory CreatePartitionDirectory | ( | MemoryContext | mcxt, |
bool | omit_detached | ||
) |
Definition at line 423 of file partdesc.c.
References ctl, HASH_BLOBS, HASH_CONTEXT, hash_create(), HASH_ELEM, MemoryContextSwitchTo(), PartitionDirectoryData::omit_detached, palloc(), PartitionDirectoryData::pdir_hash, and PartitionDirectoryData::pdir_mcxt.
Referenced by CreatePartitionPruneState(), ExecInitPartitionDispatchInfo(), and set_relation_partition_info().
void DestroyPartitionDirectory | ( | PartitionDirectory | pdir | ) |
Definition at line 484 of file partdesc.c.
References hash_seq_init(), hash_seq_search(), PartitionDirectoryData::pdir_hash, PartitionDirectoryEntry::rel, and RelationDecrementReferenceCount().
Referenced by FreeExecutorState(), and standard_planner().
Oid get_default_oid_from_partdesc | ( | PartitionDesc | partdesc | ) |
Definition at line 501 of file partdesc.c.
References PartitionDescData::boundinfo, PartitionBoundInfoData::default_index, InvalidOid, PartitionDescData::oids, and partition_bound_has_default.
Referenced by ATExecAttachPartition(), ATExecDetachPartition(), DefineRelation(), and StorePartitionBound().
PartitionDesc PartitionDirectoryLookup | ( | PartitionDirectory | pdir, |
Relation | rel | ||
) |
Definition at line 456 of file partdesc.c.
References Assert, HASH_ENTER, hash_search(), PartitionDirectoryData::omit_detached, PartitionDirectoryEntry::pd, PartitionDirectoryData::pdir_hash, PartitionDirectoryEntry::rel, RelationGetPartitionDesc(), RelationGetRelid, and RelationIncrementReferenceCount().
Referenced by CreatePartitionPruneState(), ExecInitPartitionDispatchInfo(), expand_partitioned_rtentry(), and set_relation_partition_info().
PartitionDesc RelationGetPartitionDesc | ( | Relation | rel, |
bool | omit_detached | ||
) |
Definition at line 71 of file partdesc.c.
References ActiveSnapshotSet(), Assert, PartitionDescData::detached_exist, GetActiveSnapshot(), likely, RelationData::rd_partdesc, RelationData::rd_partdesc_nodetached, RelationData::rd_partdesc_nodetached_xmin, RelationData::rd_rel, RelationBuildPartitionDesc(), TransactionIdIsValid, and XidInMVCCSnapshot().
Referenced by addFkRecurseReferenced(), addFkRecurseReferencing(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecDetachPartition(), check_new_partition_bound(), CreateTriggerFiringOn(), DefineIndex(), DefineRelation(), EnableDisableTrigger(), get_qual_for_list(), get_qual_for_range(), PartitionDirectoryLookup(), QueuePartitionConstraintValidation(), renametrig(), renametrig_partition(), StorePartitionBound(), and validatePartitionedIndex().