Skip to main content

define_create_table_defaults

Function define_create_table_defaults 

Source
pub fn define_create_table_defaults(
    context: &CreateTableAnalysisContext<'_>,
    c: &mut CreateTable,
    allocate: &mut CatalogIdentityAllocator<'_>,
) -> Result<(), SQLError>
Expand description

The defaults and generation expressions of the new table’s columns, which DefineRelation transforms in column order before it binds the table’s partitioning, since a partition key may name a generated column; each stored expression takes its pg_attrdef OID as AddRelationNewConstraints stores it.