~percona-dev/percona-server/5.1.57-12-rnt

Viewing all changes in revision 168.

  • Committer: Alexey Kopytov
  • Date: 2011-06-03 18:13:05 UTC
  • Revision ID: akopytov@gmail.com-20110603181305-nha99zvfm90bz1m1
Support for fast growing VARCHAR fields in InnoDB.

When ALTER TABLE modifies a VARCHAR column so that its length is
increased in a compatible way (i.e. the old length and the new one are
either both <= 255 or both <= 65535), it is possible to avoid table copy
and only update metadata.

This revision updates rename_field.patch so that in addition to fast
field renaming for InnoDB tables, growing VARCHAR columns can also be
performed without data copying by updating the appropriate fields in
InnoDB data dictionary.

To keep the patch name consistent with the updated functionality, the
patch has been renamed to innodb_fast_alter_column.patch, and the server
variable that controls the functionality has been renamed from
innodb_internal_rename_field to innodb_fast_alter_column.

This revision also adds test cases for both fast renames and fast
VARCHAR growing.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: