Re: ALTER TABLE ADD COLUMN Hangs

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: ALTER TABLE ADD COLUMN Hangs
Дата
Msg-id t2pdcc563d11004212344n57b5ece8z62b3d1b144528095@mail.gmail.com
обсуждение исходный текст
Ответ на ALTER TABLE ADD COLUMN Hangs  (Samuel Stearns <SStearns@internode.com.au>)
Список pgsql-admin
On Wed, Apr 21, 2010 at 8:17 PM, Samuel Stearns
<SStearns@internode.com.au> wrote:
> Howdy,
>
> I’m running in an 8.3.3 environment.  What could cause, or how can I
> diagnose, why an ‘ALTER TABLE <name> ADD COLUMN’ statement runs for hours
> eventually locking users out and requiring to be killed in the end?

By any chance you got a default on there?  If so the whole table gets
updated to the default, thus rewritten and locked while this happens.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN Hangs
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN Hangs