Skip to main content

Module identity

Module identity 

Source
Expand description

Allocate constraint incarnations and preserve legacy NOT NULL OIDs during initial migration.

Modules§

claims
Read catalog addresses without binding expressions, resolving references or projecting query rows.
foreign_keys
Foreign-key catalog rows have independent identities even when partition copies share enforcement.
keys
Match attached key provenance to the local constraint incarnation through renames.
legacy
Preserve the public addresses of predecessor key and CHECK rows during initial conversion.

Functions§

materialize_default_oid
StoreAttrDefault: a column’s default or generation expression has its own pg_attrdef row, whose OID it keeps until the expression is replaced. A column without one has no row.
materialize_key_identity
DefineIndex and index_constraint_create: a key’s enforcing index takes its OID, then the constraint takes its own.
materialize_not_null_identity
StoreRelNotNull: a NOT NULL constraint takes its incarnation and pg_constraint OID when it is stored.
migrate_constraint_metadata
Called only during the initial catalog transaction, before a legacy database becomes visible.
validate_not_null_identities