Skip to content
  • Marko Mäkelä's avatar
    99d2736a
    WL#5545 Implement simple in-place ALTER TABLE operations: ALTER_COLUMN_NAME · 99d2736a
    Marko Mäkelä authored
    innobase_rename_column(): New function, for renaming a column in both
    the InnoDB data dictionary and the data dictionary cache. If the column
    name becomes longer, allocate a new table->col_names from table->heap.
    Otherwise, overwrite the existing table->col_names.
    
    ha_innobase::commit_inplace_alter_table(): Invoke innobase_rename_column()
    when needed.
    
    The performance could be improved by doing the rename in one step.
    Currently, we perform the operation on every renamed column separately.
    A bigger performance improvement would be gained if the InnoDB data
    dictionary were eliminated altogether and replaced by something that
    plays well with InnoDB crash recovery.
    99d2736a
    WL#5545 Implement simple in-place ALTER TABLE operations: ALTER_COLUMN_NAME
    Marko Mäkelä authored
    innobase_rename_column(): New function, for renaming a column in both
    the InnoDB data dictionary and the data dictionary cache. If the column
    name becomes longer, allocate a new table->col_names from table->heap.
    Otherwise, overwrite the existing table->col_names.
    
    ha_innobase::commit_inplace_alter_table(): Invoke innobase_rename_column()
    when needed.
    
    The performance could be improved by doing the rename in one step.
    Currently, we perform the operation on every renamed column separately.
    A bigger performance improvement would be gained if the InnoDB data
    dictionary were eliminated altogether and replaced by something that
    plays well with InnoDB crash recovery.
Loading