Skip to main content

Module relation_attributes

Module relation_attributes 

Source
Expand description

Relation attribute numbers and the physical metadata retained by dropped slots.

Structs§

DroppedAttribute
A dropped attribute has no live name, type dependency, default or ACL. Its physical type metadata survives even when the old type is subsequently removed.

Constants§

MAX_ATTRIBUTES
PostgreSQL’s MaxHeapAttributeNumber, including dropped attributes.

Functions§

array_dimension_count
column_by_number
column_names
column_number
Stored columns use their durable number. Unpublished declarations and derived view/index schemas have their own consecutive positions.
consecutive_names
materialize
Assign numbers only to newly published columns, after every live or dropped slot. Existing numbers and the inputs remain unchanged on an invalid layout.
retain_numbers
A schema candidate retains numbers only from this relation’s existing columns. Inherited or newly declared columns receive fresh local numbers when published.
validate
Load-only restoration rejects missing or contradictory metadata instead of repairing a catalog snapshot.