The forum is currently being migrated to a new host. While the migration happens, the old server is still available. Once the new machine is ready, I will copy the database to the new machine. Feel free to ask and answer questions in the meantime.

when altering a table with one new column, pb8 was hanged and i close and reopen and again the same problem is coming, does any body know to solve this issue...

asked 25 Mar '13, 07:07

kvraman03's gravatar image

accept rate: 0%

edited 25 Mar '13, 07:44

Volker%20Barth's gravatar image

Volker Barth

ALTER TABLE ... ADD COLUMN requires an exclusive lock: all other transactions that are referencing the table must commit before the ALTER can proceed.

Also, in v7 the ALTER must rewrite all of the rows. If the table is large, it can take a significant amount of time. The exclusive lock is held the entire time so while the ALTER is in progress, all other connections that attempt to access the table will block.


permanent link

answered 25 Mar '13, 07:12

John%20Smirnios's gravatar image

John Smirnios
accept rate: 38%

Thank you john, it worked..

(25 Mar '13, 07:38) kvraman03
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 25 Mar '13, 07:07

question was seen: 1,540 times

last updated: 25 Mar '13, 07:44