r/mysql • • Mar 18 '26

question Column length modification

Hi,

We are using aurora mysql database version 8.0.32.

We have a table of size ~500GB and we want to modify one of the existing column size from varchar(40) to varchar(150), but its runs for hours taking table lock. So looks like its doing full table rewrite behind the scene. Ands its a critical database so table lock for this longer duration is an issue.

My understanding was that, as we are increasing the column length ,So it will not do the full tabe rewrite and will just do the meta data update. So want to understand, what is the option we have to have this column Alter performed within minimal time without taking locks.

Tried with Algorithm=Instant but it looks like , its not supported for this length modification.

5 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Big_Length9755 Mar 19 '26

Another question i had was 1)If there is any way to estimate the approx time it will take for the Alter to finish? And why INSTANT algorithm option doesnt work in this scenario?

1

u/brycesub Mar 19 '26
  1. no
  2. refer to the doc I linked above