Re: ALTER COLUMN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER COLUMN
Дата
Msg-id 8754.989359760@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ALTER COLUMN  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Fran Fabrizio writes:
>> What's the best way to alter a column definition after the fact (i.e.
>> int8-->int4).  Is the answer dump, drop table, make new table with new
>> definition and same name, import data?

> Yes.

Dump and reload can be avoided by inserting the data into a temp table
instead.  Should be at least somewhat faster.

            regards, tom lane

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

Предыдущее
От: Fran Fabrizio
Дата:
Сообщение: Re: select off of a view going slowly
Следующее
От: "Christian Marschalek"
Дата:
Сообщение: Inheritance and Referencing troubles... (confusing problem)