Expand description
Declarative partition validation, value comparison, and routing semantics.
Structs§
Enums§
- Partition
Rejection - 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.
- Partition
Route - Where a row that a statement writes through a relation is stored.
Traits§
- Partition
Catalog - Hierarchy definitions needed to validate and route a row; no storage writes are exposed.
- Partition
Expressions - 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
INSERTwrites throughrequested_table, asExecFindPartitiondoes: 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:ExecInsertchecks the partition constraint of a partition that the statement names after its other constraints, which the caller does withpartition_constraint_accepts_row. - validate_
hash_ partition_ spec - validate_
new_ partition_ bound