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
Ответ на
Список
Дерево обсуждения
Re: Server does not reply to Alter Table Patrick Dunford <a47xxy@yahoo.co.nz>
Patrick Dunford  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)
Дата:
FAQ