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

kvraman03
32336
accept rate: 0%

edited 25 Mar '13, 07:44

Volker%20Barth's gravatar image

Volker Barth
30.0k294448654


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.

-john.

permanent link

answered 25 Mar '13, 07:12

John%20Smirnios's gravatar image

John Smirnios
8.8k377109
accept rate: 40%

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×13
×11

question asked: 25 Mar '13, 07:07

question was seen: 747 times

last updated: 25 Mar '13, 07:44