List:Cluster« Previous MessageNext Message »
From:Stewart Smith Date:November 14 2007 3:42am
Subject:Re: Alter table in 5.0.45
View as plain text  
On Tue, 2007-11-13 at 12:07 -0800, Jonathan Haddad wrote:
> It's not clear to me whether or not I can alter tables.  Can I add columns
> and indexes once the cluster is being used?  Thanks.

You can do any ALTER you want. However, if a data node fails at the
"wrong" point, you'll need to restart the cluster before any more ALTERs
can be done. This is relatively rare though.

All ALTERs in 5.0 will be copying alter tables. That means while the
ALTER is taking place, no other node should write to the table. SINGLE
USER MODE is of use here.

Also, since it's a copying alter table, the table is locked (locally,
hence SINGLE USER MODE). So nobody can access the table. Also, it's
copying - which needs you need free DataMemory and IndexMemory for the
new AND old table.
-- 
Stewart Smith, Senior Software Engineer
MySQL AB, www.mysql.com
Office: +14082136540 Ext: 6616
VoIP: 6616@stripped
Mobile: +61 4 3 8844 332

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature]
Thread
Alter table in 5.0.45Jonathan Haddad13 Nov
  • Re: Alter table in 5.0.45Matthew Montgomery14 Nov
    • Re: Alter table in 5.0.45Jonathan Haddad14 Nov
      • Re: Alter table in 5.0.45Stewart Smith14 Nov
  • Re: Alter table in 5.0.45Stewart Smith14 Nov