Skip to main content

Module partition

Module partition 

Source
Expand description

Declarative partition validation, value comparison, and routing semantics.

Structs§

PartitionContext

Enums§

PartitionRejection
Why partition routing rejects a row. The executor reports each with a description of the row, which depends on the statement and the role that writes it.
PartitionRoute
Where a row that a statement writes through a relation is stored.

Traits§

PartitionCatalog
Hierarchy definitions needed to validate and route a row; no storage writes are exposed.
PartitionExpressions
Evaluate declared partition keys and bounds with the caller’s expression scope.

Functions§

partition_constraint_accepts_document
Evaluate a retained detached-partition CHECK without requiring a live parent edge. This is also the exact predicate used for prospective ATTACH row scans.
partition_constraint_accepts_row
Whether the row satisfies the partition constraint of table, which holds the bounds of the partition and of each of its partition ancestors (ExecPartitionCheck). A relation that is not a partition accepts every row.
partition_hierarchy_root
partition_identity_owner
Return the physical counter owner for legacy auto-increment metadata. Declarative partitions share the top partitioned parent’s counter; newly created SERIAL and identity columns use their durable sequence binding instead.
prospective_partition_bound_accepts_document
Test one stored row against a prospective direct-child bound before the hierarchy edge is installed. DEFAULT means no existing non-default sibling accepts the row, matching the routing decision the new edge will expose.
route_partition_insert
Route a row that an INSERT writes through requested_table, as ExecFindPartition does: a partitioned table that is itself a partition first checks its own partition constraint, and each level then selects the partition whose bound accepts the row. A relation that is not partitioned stores the row itself, without a check: ExecInsert checks the partition constraint of a partition that the statement names after its other constraints, which the caller does with partition_constraint_accepts_row.
validate_hash_partition_spec
validate_new_partition_bound