PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | HASH_PARTITION_SEED UINT64CONST(0x7A5B22367996DCFD) |
Functions | |
Oid | get_partition_parent (Oid relid, bool even_if_detached) |
List * | get_partition_ancestors (Oid relid) |
Oid | index_get_partition (Relation partition, Oid indexId) |
List * | map_partition_varattnos (List *expr, int fromrel_varno, Relation to_rel, Relation from_rel) |
bool | has_partition_attrs (Relation rel, Bitmapset *attnums, bool *used_in_expr) |
Oid | get_default_partition_oid (Oid parentId) |
void | update_default_partition_oid (Oid parentId, Oid defaultPartId) |
List * | get_proposed_default_constraint (List *new_part_constraints) |
#define HASH_PARTITION_SEED UINT64CONST(0x7A5B22367996DCFD) |
Definition at line 20 of file partition.h.
Definition at line 315 of file partition.c.
References GETSTRUCT, HeapTupleIsValid, InvalidOid, ObjectIdGetDatum(), ReleaseSysCache(), and SearchSysCache1().
Referenced by heap_drop_with_catalog(), and RelationBuildPartitionDesc().
Definition at line 134 of file partition.c.
References AccessShareLock, get_partition_ancestors_worker(), NIL, table_close(), and table_open().
Referenced by ExecGetAncestorResultRels(), ExecInitPartitionInfo(), filter_partitions(), get_rel_sync_entry(), getIdentitySequence(), index_concurrently_swap(), pg_partition_ancestors(), pg_partition_root(), pg_partition_tree(), and RelationBuildPublicationDesc().
Definition at line 53 of file partition.c.
References AccessShareLock, elog, ERROR, get_partition_parent_worker(), OidIsValid, table_close(), and table_open().
Referenced by ATExecAttachPartitionIdx(), ATExecDropNotNull(), DetachPartitionFinalize(), generate_partition_qual(), heap_drop_with_catalog(), index_get_partition(), RangeVarCallbackForDropRelation(), renametrig(), and validatePartitionedIndex().
Definition at line 370 of file partition.c.
References canonicalize_qual(), eval_const_expressions(), list_make1, make_ands_explicit(), make_ands_implicit(), makeBoolExpr(), and NOT_EXPR.
Referenced by ATExecAttachPartition(), and check_default_partition_contents().
Definition at line 255 of file partition.c.
References bms_is_member(), bms_overlap(), FirstLowInvalidHeapAttributeNumber, get_partition_col_attnum(), get_partition_exprs(), get_partition_natts(), i, sort-test::key, lfirst, list_head(), lnext(), pull_varattnos(), RelationData::rd_rel, and RelationGetPartitionKey().
Referenced by ATExecDropColumn(), ATPrepAlterColumnType(), and expand_partitioned_rtentry().
Definition at line 176 of file partition.c.
References elog, ERROR, get_partition_parent(), GETSTRUCT, HeapTupleIsValid, InvalidOid, lfirst_oid, list_free(), ObjectIdGetDatum(), RelationGetIndexList(), ReleaseSysCache(), and SearchSysCache1().
Referenced by addFkRecurseReferenced(), CloneFkReferenced(), and refuseDupeIndexAttach().
List* map_partition_varattnos | ( | List * | expr, |
int | fromrel_varno, | ||
Relation | to_rel, | ||
Relation | from_rel | ||
) |
Definition at line 222 of file partition.c.
References build_attrmap_by_name(), map_variable_attnos(), NIL, RelationGetDescr, and RelationGetForm.
Referenced by ATExecAttachPartition(), check_default_partition_contents(), CloneRowTriggersToPartition(), CreateTriggerFiringOn(), generate_partition_qual(), and QueuePartitionConstraintValidation().
Definition at line 340 of file partition.c.
References CatalogTupleUpdate(), elog, ERROR, GETSTRUCT, heap_freetuple(), HeapTupleIsValid, ObjectIdGetDatum(), RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by DetachPartitionFinalize(), heap_drop_with_catalog(), and StorePartitionBound().