• Marko Mäkelä's avatar
    Enable instant ADD COLUMN · e9f6906d
    Marko Mäkelä authored
    We must split the creation of table or index metadata from the
    creation of the dictionary table records and the creation of
    the data. In this way, we can transform a table-rebuilding operation
    into an instant ADD COLUMN operation. Dictionary objects will only
    be added to cache when table rebuilding or index creation is needed.
    The ctx->instant_table will never be added to cache.
    
    innodb_update_n_cols(): Renamed from innobase_update_n_virtual().
    Call my_error() if an error occurs.
    
    innobase_add_instant_try(): Call my_error() if an error occurs.
    
    create_index_dict(): Replaces row_merge_create_index_graph().
    
    prepare_inplace_alter_table_dict(): First create the ctx->new_table,
    and only then decide if the table really needs to be rebuilt.
    e9f6906d
instant_alter,8k.rdiff 4.25 KB