Re: Adding a column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding a column
Дата
Msg-id 28686.1162143728@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Adding a column  (Bob Pawley <rjpawley@shaw.ca>)
Список pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
> Any thoughts on why dynamically adding a column to a table would require =
> a run time of 24,000 + milliseconds??

Updating all the rows to store the default value, no doubt.  See
http://developer.postgresql.org/pgdocs/postgres/ddl-alter.html
especially the tip under 5.5.1.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: arrays of user types.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Modifying SQL parser with extensions?