Re: Server does not reply to Alter Table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Server does not reply to Alter Table
Дата
Msg-id 25074.1012924704@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Server does not reply to Alter Table  (Patrick Dunford <dunfordsoft@clear.net.nz>)
Список pgsql-general
Patrick Dunford <dunfordsoft@clear.net.nz> writes:
> Using pgsql 7.1.3 I have found that on occasions, there is no reply to an
> SQL statement like

> ALTER TABLE x
>     ADD COLUMN y z

You sure it's not just waiting for some other transaction to give up a
lock on the table?  ALTER TABLE ADD COLUMN should be essentially
instantaneous, since it doesn't touch the table data.  But it needs to
get exclusive lock on the table first.

            regards, tom lane

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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: PostgreSQL v7.2 Final Release
Следующее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: PostgreSQL v7.2 Final Release