Skip to main content

Module inheritance

Module inheritance 

Source
Expand description

CREATE TABLE inheritance and partition row-type preparation.

Modules§

alter
ALTER inheritance and partition declaration rules over immutable column and constraint definitions.
detachment
Preserve local constraint rows while separating detached foreign-key enforcement families.
foreign_keys
The foreign keys a partition holds for the foreign keys of its partitioned parent: an equivalent foreign key of its own that it attaches, or a copy, as PostgreSQL’s tryAttachPartitionForeignKey and addFkConstraint decide.
origins
Track whether NOT NULL and CHECK declarations are local after a hierarchy edge changes.
restoration
Retain local schema objects when legacy hierarchy edges lose their parent.

Structs§

InheritanceContext

Traits§

InheritanceCatalog
Parent lookup and constraint declarations used while assembling a new row type.

Functions§

merge_same_column
prepare_create_table_hierarchy