Skip to main content

Module constraint_changes

Module constraint_changes 

Source
Expand description

Locate durable constraints and analyze changes to their type, identity, and enforcement metadata.

Modules§

foreign_key_target
Resolve materialized foreign keys by name initially and by durable identity after a wait.
inheritance
Match inherited constraints and select removal behavior from their remaining origins.
names
Names and independent catalog identities from a borrowed relation declaration.
not_null_removal
Protect primary keys and identity columns when removing NOT NULL constraints.
renaming
Inherited constraint rename diagnostics and metadata edits preserve constraint identity.
validation
Select constraint validation dependencies and match inherited NOT NULL constraints by column.

Structs§

ConstraintAlterEffects
ConstraintAlterOptions
ConstraintAncestor
A constraint without a parent, which the constraints derived from it name in diagnostics.
ConstraintTypeContext

Enums§

ConstraintLocation
ForeignKeyLocation
Where a relation declares a foreign key.

Traits§

ConstraintTypeReferrers

Functions§

apply_constraint_alteration
constraint_error
derived_constraint_alteration
ALTER CONSTRAINT of a constraint derived from another, which PostgreSQL refuses so that the derived constraints keep following the one they derive from.
ensure_constraint_name_available
ensure_not_null_inheritable
find_constraint
foreign_key_object_id
take_column_check
validate_altered_constraint_column_types