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.
Re-exports§
pub use crate::catalog::collations::builtin_collation_oid;
Modules§
- type_
changes - Composite attribute type preparation and dependency checks, before any catalog write.
Constants§
- MAX_
ATTRIBUTES MaxHeapAttributeNumber.
Functions§
- prepare_
added_ attribute ATExecAddColumnfor 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.
- validate_
removed_ attribute - Resolve a live composite attribute before dependency traversal. Composite relations have no system columns.
- validate_
renamed_ attribute renameatt_internalchecks the source before the destination; standalone composites have no system attributes.