Skip to main content

Module composites

Module composites 

Source
Expand description

The attribute checks of DefineCompositeType in PostgreSQL’s order: MergeAttributes rejects too many attributes and then a repeated name, BuildDescForRelation resolves each attribute’s type, requires USAGE on it, derives its collation and rejects SETOF, and CheckAttributeNamesTypes then rejects pseudo-types.

Constants§

MAX_ATTRIBUTES
MaxHeapAttributeNumber.

Functions§

builtin_collation_oid
The pg_collation OID of a built-in collation name.
prepare_added_attribute
ATExecAddColumn for a composite relation, after its owner and kind have been checked.
prepare_composite_attributes
Check and bind the declared attributes of a new composite type, numbering them from one.
type_is_collatable
Whether values of a type carry a collation.